aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/api
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-06-27 16:02:40 +0300
committerGravatar Vitaly Takmazov2016-06-27 16:02:40 +0300
commit5df4a0d2631e31e4c035aaedec1d6d50e3bdb098 (patch)
tree7d44e186004d144f4056ed395b36241aca6aa7f9 /src/main/java/com/juick/api
parent76f8fcd4269ac99bf2522a8ef2fa565bddd2a6fc (diff)
telegram: try to add photo
Diffstat (limited to 'src/main/java/com/juick/api')
-rw-r--r--src/main/java/com/juick/api/TelegramBotHook.java4
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());