aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--juick-api/src/main/java/com/juick/api/TelegramBotManager.java4
1 files changed, 1 insertions, 3 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 26eb457a..098d0876 100644
--- a/juick-api/src/main/java/com/juick/api/TelegramBotManager.java
+++ b/juick-api/src/main/java/com/juick/api/TelegramBotManager.java
@@ -119,9 +119,7 @@ public class TelegramBotManager implements ApplicationListener<MessageEvent> {
bot.execute(telegramMessage, new Callback<SendMessage, SendResponse>() {
@Override
public void onResponse(SendMessage request, SendResponse response) {
- if (response.message() != null) {
- logger.info("got response: {}", response.message());
- } else {
+ if (!response.isOk()) {
logger.warn("null response, isOk: {}, errorCode: {}, description: {}",
response.isOk(), response.errorCode(), response.description());
}