aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.gradle3
-rw-r--r--src/main/java/com/juick/api/TelegramBotHook.java2
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());
}