From 618e17bfc4ae0bad393ee7c473ef408fbc5d8f5d Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 23 Jan 2020 11:06:00 +0300 Subject: Revert "telegram: MarkdownV2 mode" This reverts commit dcf13e9720b8a961817e1c771e7395afb35ffef6. --- src/main/java/com/juick/server/TelegramBotManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/com') diff --git a/src/main/java/com/juick/server/TelegramBotManager.java b/src/main/java/com/juick/server/TelegramBotManager.java index b0d6774d..f8948a68 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.MarkdownV2); + telegramPhoto.parseMode(ParseMode.Markdown); 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.MarkdownV2).disableWebPagePreview(true); + telegramMessage.parseMode(ParseMode.Markdown).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.MarkdownV2), new Callback<>() { + .parseMode(ParseMode.Markdown), new Callback<>() { @Override public void onResponse(SendMessage request, SendResponse response) { logger.info("got response: {}", response.message()); -- cgit v1.2.3