diff options
author | Vitaly Takmazov | 2016-06-07 19:35:57 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-06-07 19:35:57 +0300 |
commit | 0a2d8c6b44acc8f9e4ca3a70bcd891ff903f1708 (patch) | |
tree | ed2c88d321774cd5ca8830d7a721fa02606809ec /src/main | |
parent | 904a06d013f999e98724b222e6a4b48f68ddf32f (diff) |
telegram: show tags
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 2e1ac20c..e3afdd51 100644 --- a/src/main/java/com/juick/api/TelegramBotHook.java +++ b/src/main/java/com/juick/api/TelegramBotHook.java @@ -23,7 +23,6 @@ import java.io.BufferedReader; import java.io.IOException; import java.util.List; import java.util.Map; -import java.util.Optional; import java.util.UUID; import java.util.logging.Level; import java.util.logging.Logger; @@ -66,7 +65,8 @@ public class TelegramBotHook { com.juick.Message jmsg = ms.deserialize(new JSONObject(text)); logger.info("got jmsg: " + ms.serialize(jmsg).toString()); StringBuilder sb = new StringBuilder(); - sb.append("@").append(jmsg.getUser().getUName()).append(":\n").append(jmsg.getText()).append("\n"); + 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()); } |