From b1eb6fd80ba37364c6f04cc15fd3da4462476292 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 25 Dec 2017 15:36:51 +0300 Subject: telegram: help --- .../src/main/java/com/juick/api/controllers/TelegramWebhook.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'juick-api/src/main/java/com') 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 dd4ebc06..034a8acf 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(); -- cgit v1.2.3