diff options
Diffstat (limited to 'juick-api/src/main')
-rw-r--r-- | juick-api/src/main/java/com/juick/api/controllers/TelegramWebhook.java | 6 |
1 files changed, 4 insertions, 2 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 dd4ebc063..034a8acf7 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 @@ -125,9 +125,11 @@ public class TelegramWebhook { text = StringUtils.EMPTY; } if (StringUtils.isNotEmpty(text) || StringUtils.isNotEmpty(attachment)) { - if (text.equalsIgnoreCase("/login") || text.equalsIgnoreCase("/start")) { + if (text.equalsIgnoreCase("/login") || text.equalsIgnoreCase("/start") + || text.equalsIgnoreCase("/help")) { String msgUrl = "http://juick.com/login?" + usersService.getHashByUID(user_from.getUid()); - String msg = String.format("Hi, %s!\nTap to [log in](%s)", user_from.getName(), msgUrl); + String msg = String.format("Hi, %s!\nYou can post messages and images to Juick there.\n" + + "Tap to [log into website](%s) to get more info", user_from.getName(), msgUrl); telegramBotManager.telegramNotify(message.from().id().longValue(), msg); } else { Message replyMessage = message.replyToMessage(); |