diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/juick/api/TelegramBotHook.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/api/TelegramBotHook.java b/src/main/java/com/juick/api/TelegramBotHook.java index e3afdd51..429b55f3 100644 --- a/src/main/java/com/juick/api/TelegramBotHook.java +++ b/src/main/java/com/juick/api/TelegramBotHook.java @@ -67,8 +67,8 @@ public class TelegramBotHook { StringBuilder sb = new StringBuilder(); sb.append("@").append(jmsg.getUser().getUName()).append(":\n") .append(jmsg.getTagsString()).append("\n").append(jmsg.getText()).append("\n"); - if (jmsg.getAttachmentURL() != null) { - sb.append(jmsg.getAttachmentURL()); + if (jmsg.Photo != null) { + sb.append(jmsg.Photo); } String msg = sb.toString(); List<Long> users = getSubscribers(jmsg.getUser().getUID()); |