aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src/main/java/com/juick
diff options
context:
space:
mode:
Diffstat (limited to 'juick-api/src/main/java/com/juick')
-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 1141d6d80..e14d226d8 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);
}
}
}