diff options
author | Vitaly Takmazov | 2016-06-27 16:02:40 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-06-27 16:02:40 +0300 |
commit | 5df4a0d2631e31e4c035aaedec1d6d50e3bdb098 (patch) | |
tree | 7d44e186004d144f4056ed395b36241aca6aa7f9 /src/main | |
parent | 76f8fcd4269ac99bf2522a8ef2fa565bddd2a6fc (diff) |
telegram: try to add photo
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()); |