diff options
author | 2017-10-28 11:29:13 +0300 | |
---|---|---|
committer | 2017-10-28 11:29:13 +0300 | |
commit | 38a727fa6f3ec6579d6dc69d74a067b650ddcf52 (patch) | |
tree | 17049b6133feafd1e818f38077e9ee8230c55cf6 /juick-api/src/main/java/com | |
parent | 308bd9700d64b627981229fe304fccd50154b7f9 (diff) |
api: disable Telegram previews
Diffstat (limited to 'juick-api/src/main/java/com')
-rw-r--r-- | juick-api/src/main/java/com/juick/api/TelegramBotManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-api/src/main/java/com/juick/api/TelegramBotManager.java b/juick-api/src/main/java/com/juick/api/TelegramBotManager.java index 256084c3..09703ea0 100644 --- a/juick-api/src/main/java/com/juick/api/TelegramBotManager.java +++ b/juick-api/src/main/java/com/juick/api/TelegramBotManager.java @@ -139,7 +139,7 @@ public class TelegramBotManager extends TextWebSocketHandler { public void telegramNotify(Long c, String msg) { SendMessage telegramMessage = new SendMessage(c, msg); - telegramMessage.parseMode(ParseMode.Markdown); + telegramMessage.parseMode(ParseMode.Markdown).disableWebPagePreview(true); bot.execute(telegramMessage, new Callback<SendMessage, SendResponse>() { @Override public void onResponse(SendMessage request, SendResponse response) { |