diff options
author | Vitaly Takmazov | 2018-01-17 12:30:57 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-01-17 12:30:57 +0300 |
commit | c51aac10c222cdc6595ed4c2c441fbcaa8c1e272 (patch) | |
tree | 8361c043aa6b29d18222b1339c8a37cacec8e5b8 /juick-api | |
parent | 10328bb6531af29a3da8d9121d7ba9434845a19b (diff) |
api: trying to debug telegram messages lost
Diffstat (limited to 'juick-api')
-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 |