aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server/src/main')
-rw-r--r--juick-server/src/main/java/com/juick/server/TelegramBotManager.java2
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);