From 5df4a0d2631e31e4c035aaedec1d6d50e3bdb098 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 27 Jun 2016 16:02:40 +0300 Subject: telegram: try to add photo --- src/main/java/com/juick/api/TelegramBotHook.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java') 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 users = getSubscribers(jmsg.getUser().getUID()); -- cgit v1.2.3