aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src/main/java/com/juick/api/controllers
diff options
context:
space:
mode:
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.java8
1 files changed, 2 insertions, 6 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 7dd82b9f..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
@@ -123,12 +123,8 @@ public class TelegramWebhook {
String msgUrl = "http://juick.com/login?" + usersService.getHashByUID(user_from.getUid());
telegramBotManager.telegramNotify(message.from().id().longValue(), msg, msgUrl);
} else if (text.toLowerCase().startsWith("/post ")) {
- if (!user_from.isAnonymous()) {
- apiServer.processMessage(user_from, text.substring(6), attachment);
- telegramBotManager.telegramNotify(message.from().id().longValue(), "message sent", null);
- } else {
- telegramBotManager.telegramNotify(message.from().id().longValue(), "Please, /login to send messages", null);
- }
+ 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);