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 | |
parent | c0115554aac7106974e12fd5b66ceaf69cee6e84 (diff) |
full message format, take 2
-rw-r--r-- | build.gradle | 3 | ||||
-rw-r--r-- | src/main/java/com/juick/api/TelegramBotHook.java | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/build.gradle b/build.gradle index 1cffaf68..d11187c4 100644 --- a/build.gradle +++ b/build.gradle @@ -44,9 +44,6 @@ project(':deps:com.juick.json') { compile core } } -configurations.all { - exclude group: "commons-logging", module: "commons-logging" -} dependencies { compile core compile server 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()); } |