aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src/main/java/com/juick/api/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'juick-api/src/main/java/com/juick/api/controllers')
-rw-r--r--juick-api/src/main/java/com/juick/api/controllers/TelegramWebhook.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/juick-api/src/main/java/com/juick/api/controllers/TelegramWebhook.java b/juick-api/src/main/java/com/juick/api/controllers/TelegramWebhook.java
index ef2456b57..bb0ce1eaa 100644
--- a/juick-api/src/main/java/com/juick/api/controllers/TelegramWebhook.java
+++ b/juick-api/src/main/java/com/juick/api/controllers/TelegramWebhook.java
@@ -122,9 +122,9 @@ public class TelegramWebhook {
}
if (StringUtils.isNotEmpty(text)) {
if (text.equalsIgnoreCase("/login")) {
- String msg = String.format("Hi, %s!\nTap to log in", user_from.getName());
String msgUrl = "http://juick.com/login?" + usersService.getHashByUID(user_from.getUid());
- telegramBotManager.telegramNotify(message.from().id().longValue(), msg, msgUrl);
+ String msg = String.format("Hi, %s!\nTap to [log in](%s)", user_from.getName(), msgUrl);
+ telegramBotManager.telegramNotify(message.from().id().longValue(), msg);
} else {
Message replyMessage = message.replyToMessage();
if (replyMessage != null) {
@@ -143,12 +143,12 @@ public class TelegramWebhook {
prefix = String.format("#%d/%d ", mid, rid);
}
apiServer.processMessage(user_from, prefix + finalText, finalAttachment);
- telegramBotManager.telegramNotify(finalMessage.from().id().longValue(), "reply sent", null);
+ telegramBotManager.telegramNotify(finalMessage.from().id().longValue(), "reply sent");
}
});
} else {
apiServer.processMessage(user_from, text, attachment);
- telegramBotManager.telegramNotify(message.from().id().longValue(), "message sent", null);
+ telegramBotManager.telegramNotify(message.from().id().longValue(), "message sent");
}
}
}