aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src/main/java/com/juick/api/controllers
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-09-30 10:37:23 +0300
committerGravatar Vitaly Takmazov2017-09-30 10:37:23 +0300
commit63453a0dab385cc140efe700834ab2d656359a27 (patch)
tree431d67a20b268f927ddf173eace63e4fc0f74a96 /juick-api/src/main/java/com/juick/api/controllers
parentaeda7039d626e791b6f86bcb8778a781b1a72848 (diff)
telegram: add some hints
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.java4
1 files changed, 4 insertions, 0 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 1141d6d8..e14d226d 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
@@ -124,6 +124,10 @@ public class TelegramWebhook {
telegramBotManager.telegramNotify(message.from().id().longValue(), msg, msgUrl);
} else if (text.toLowerCase().startsWith("/post ")) {
apiServer.processMessage(user_from, text.substring(6), attachment);
+ telegramBotManager.telegramNotify(message.from().id().longValue(), "message sent", null);
+ } else {
+ telegramBotManager.telegramNotify(message.from().id().longValue(),
+ "You can send messages and images to Juick with /post command", null);
}
}
}