diff options
author | Vitaly Takmazov | 2018-10-24 14:09:57 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-10-24 14:09:57 +0300 |
commit | 13bf7289cc2dac1897530e6d465bf0a0fef8b3d1 (patch) | |
tree | 03b831fe3a1c02f03d9223ab55d428027af8b6af /juick-server/src/main/java/com/juick/server | |
parent | cf035e574822ba59a414e8a5f352521e457af0c9 (diff) |
tg: update caption limit to 1024
Diffstat (limited to 'juick-server/src/main/java/com/juick/server')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/TelegramBotManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/server/TelegramBotManager.java b/juick-server/src/main/java/com/juick/server/TelegramBotManager.java index c946d7c9..8e8d0104 100644 --- a/juick-server/src/main/java/com/juick/server/TelegramBotManager.java +++ b/juick-server/src/main/java/com/juick/server/TelegramBotManager.java @@ -266,7 +266,7 @@ public class TelegramBotManager implements NotificationListener { }); } else { SendPhoto telegramPhoto = new SendPhoto(chatId, attachment); - String trimmedPost = msg.length() > 160 ? msg.substring(0, 159) + "..." : msg; + String trimmedPost = msg.length() > 1024 ? msg.substring(0, 1023) + "..." : msg; telegramPhoto.caption(trimmedPost); if (replyTo > 0) { telegramPhoto.replyToMessageId(replyTo); |