diff options
author | 2018-01-18 15:11:32 +0300 | |
---|---|---|
committer | 2018-01-18 15:11:32 +0300 | |
commit | 87455349439476000bcc78c9bca5ff8fd5fc2a6c (patch) | |
tree | 07d4de155b8c15d392d0b16be068f3a1ec58096c /juick-api/src/main/java | |
parent | 850d9616b3588cf8473d7d93280df69ea0f19c0c (diff) |
tg: fix user deletion on 403
Diffstat (limited to 'juick-api/src/main/java')
-rw-r--r-- | juick-api/src/main/java/com/juick/api/TelegramBotManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-api/src/main/java/com/juick/api/TelegramBotManager.java b/juick-api/src/main/java/com/juick/api/TelegramBotManager.java index c2eeefd3..54dab247 100644 --- a/juick-api/src/main/java/com/juick/api/TelegramBotManager.java +++ b/juick-api/src/main/java/com/juick/api/TelegramBotManager.java @@ -255,7 +255,7 @@ public class TelegramBotManager implements ApplicationListener<MessageEvent> { if (userId > 0) { User userToDelete = userService.getUserByUID(userId) .orElse(new User()); - boolean status = telegramService.deleteTelegramUser(chatId.intValue()); + boolean status = telegramService.deleteTelegramUser(userToDelete.getUid()); logger.info("deleting telegram id of @{} : {}", userToDelete.getName(), status); boolean chatStatus = telegramService.deleteChat(chatId); logger.info("deleting telegram chat {} : {}", chatId, chatStatus); |