diff options
-rw-r--r-- | juick-api/src/main/java/com/juick/api/controllers/TelegramWebhook.java | 4 |
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); } } } |