aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-12-25 15:36:51 +0300
committerGravatar Vitaly Takmazov2017-12-25 15:36:51 +0300
commitb1eb6fd80ba37364c6f04cc15fd3da4462476292 (patch)
tree273b97c67d426f1d70bd6a1101bdae2be7f779e6 /juick-api/src/main/java
parentca5ad58f87a092f2c946f88c2e0a3aec6b486e2c (diff)
telegram: help
Diffstat (limited to 'juick-api/src/main/java')
-rw-r--r--juick-api/src/main/java/com/juick/api/controllers/TelegramWebhook.java6
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 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();