diff options
Diffstat (limited to 'juick-api/src/main/java/com')
-rw-r--r-- | juick-api/src/main/java/com/juick/api/TelegramBotManager.java | 6 |
1 files changed, 5 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 801bb0a7..66aba78f 100644 --- a/juick-api/src/main/java/com/juick/api/TelegramBotManager.java +++ b/juick-api/src/main/java/com/juick/api/TelegramBotManager.java @@ -119,7 +119,11 @@ public class TelegramBotManager implements ApplicationListener<MessageEvent> { bot.execute(telegramMessage, new Callback<SendMessage, SendResponse>() { @Override public void onResponse(SendMessage request, SendResponse response) { - logger.info("got response: {}", response.message()); + if (response.message() != null) { + logger.info("got response: {}", response.message()); + } else { + logger.warn("null response, isOk: {}, errorCode: {}", response.isOk(), response.errorCode()); + } } @Override |