diff options
author | Vitaly Takmazov | 2016-05-13 11:33:17 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-05-13 11:33:26 +0300 |
commit | e9202d13bca4894efb7e365d42eb9b703a0dc7eb (patch) | |
tree | 8578638ddc219c838f2cb435e38edf4ff79b2ee0 /src/main/java/com/juick/api/TelegramBotHook.java | |
parent | c0115554aac7106974e12fd5b66ceaf69cee6e84 (diff) |
full message format, take 2
Diffstat (limited to 'src/main/java/com/juick/api/TelegramBotHook.java')
-rw-r--r-- | src/main/java/com/juick/api/TelegramBotHook.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/api/TelegramBotHook.java b/src/main/java/com/juick/api/TelegramBotHook.java index 6a6404de..90c644af 100644 --- a/src/main/java/com/juick/api/TelegramBotHook.java +++ b/src/main/java/com/juick/api/TelegramBotHook.java @@ -56,7 +56,7 @@ 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(jmsg.getUser()).append("\n").append(jmsg.getText()).append("\n"); + sb.append("@").append(jmsg.getUser().getUName()).append(":\n").append(jmsg.getText()).append("\n"); if (jmsg.getAttachmentURL() != null) { sb.append(jmsg.getAttachmentURL()); } |