aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-10-28 11:29:13 +0300
committerGravatar Vitaly Takmazov2017-10-28 11:29:13 +0300
commit38a727fa6f3ec6579d6dc69d74a067b650ddcf52 (patch)
tree17049b6133feafd1e818f38077e9ee8230c55cf6 /juick-api/src/main
parent308bd9700d64b627981229fe304fccd50154b7f9 (diff)
api: disable Telegram previews
Diffstat (limited to 'juick-api/src/main')
-rw-r--r--juick-api/src/main/java/com/juick/api/TelegramBotManager.java2
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) {