aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/api
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-06-07 19:35:57 +0300
committerGravatar Vitaly Takmazov2016-06-07 19:35:57 +0300
commit0a2d8c6b44acc8f9e4ca3a70bcd891ff903f1708 (patch)
treeed2c88d321774cd5ca8830d7a721fa02606809ec /src/main/java/com/juick/api
parent904a06d013f999e98724b222e6a4b48f68ddf32f (diff)
telegram: show tags
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 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());
}