From 38a727fa6f3ec6579d6dc69d74a067b650ddcf52 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 28 Oct 2017 11:29:13 +0300 Subject: api: disable Telegram previews --- juick-api/src/main/java/com/juick/api/TelegramBotManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-api/src/main/java/com/juick/api') 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() { @Override public void onResponse(SendMessage request, SendResponse response) { -- cgit v1.2.3