From 63453a0dab385cc140efe700834ab2d656359a27 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 30 Sep 2017 10:37:23 +0300 Subject: telegram: add some hints --- .../src/main/java/com/juick/api/controllers/TelegramWebhook.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'juick-api') 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); } } } -- cgit v1.2.3