aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick')
-rw-r--r--src/main/java/com/juick/server/TelegramBotManager.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/juick/server/TelegramBotManager.java b/src/main/java/com/juick/server/TelegramBotManager.java
index f8948a68..b0d6774d 100644
--- a/src/main/java/com/juick/server/TelegramBotManager.java
+++ b/src/main/java/com/juick/server/TelegramBotManager.java
@@ -302,7 +302,7 @@ public class TelegramBotManager implements NotificationListener {
if (replyTo > 0) {
telegramPhoto.replyToMessageId(replyTo);
}
- telegramPhoto.parseMode(ParseMode.Markdown);
+ telegramPhoto.parseMode(ParseMode.MarkdownV2);
if(msg.length() < 1024) {
telegramPhoto.caption(msg);
isSendTxt = false;
@@ -324,7 +324,7 @@ public class TelegramBotManager implements NotificationListener {
if (replyTo > 0) {
telegramMessage.replyToMessageId(replyTo);
}
- telegramMessage.parseMode(ParseMode.Markdown).disableWebPagePreview(true);
+ telegramMessage.parseMode(ParseMode.MarkdownV2).disableWebPagePreview(true);
bot.execute(telegramMessage, new Callback<>() {
@Override
public void onResponse(SendMessage request, SendResponse response) {
@@ -377,7 +377,7 @@ public class TelegramBotManager implements NotificationListener {
String.format("You are subscribed to all Juick messages. " +
"[Create or link](http://juick.com/signup?type=durov&hash=%s) " +
"an existing Juick account to get your subscriptions and ability to post messages", hash))
- .parseMode(ParseMode.Markdown), new Callback<>() {
+ .parseMode(ParseMode.MarkdownV2), new Callback<>() {
@Override
public void onResponse(SendMessage request, SendResponse response) {
logger.info("got response: {}", response.message());