diff options
Diffstat (limited to 'src/main/java/com/juick/api')
-rw-r--r-- | src/main/java/com/juick/api/TelegramBotHook.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/com/juick/api/TelegramBotHook.java b/src/main/java/com/juick/api/TelegramBotHook.java index 90c644af..ed3e8942 100644 --- a/src/main/java/com/juick/api/TelegramBotHook.java +++ b/src/main/java/com/juick/api/TelegramBotHook.java @@ -60,9 +60,10 @@ public class TelegramBotHook { if (jmsg.getAttachmentURL() != null) { sb.append(jmsg.getAttachmentURL()); } - sb.append("https://juick.com/" + jmsg.getMID()); + sb.append("https://juick.com/").append(jmsg.getMID()); + String msg = sb.toString(); chats.stream().forEach(c -> { - bot.execute(new SendMessage(c, sb.toString()), new Callback<SendMessage, SendResponse>() { + bot.execute(new SendMessage(c, msg), new Callback<SendMessage, SendResponse>() { @Override public void onResponse(SendMessage request, SendResponse response) { logger.info("got response: " + response.message().toString()); |