From cdc2cb30eb37dd9883561c50ae49c455504e7eee Mon Sep 17 00:00:00 2001 From: XyL1GaN4eG Date: Sat, 27 Jul 2024 21:44:28 +0300 Subject: [PATCH] Update TelegramBot.java --- .../java/weatherproject/tgbotservice/telegram/TelegramBot.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tgBotService/src/main/java/weatherproject/tgbotservice/telegram/TelegramBot.java b/tgBotService/src/main/java/weatherproject/tgbotservice/telegram/TelegramBot.java index 0a53c19..32f61ea 100644 --- a/tgBotService/src/main/java/weatherproject/tgbotservice/telegram/TelegramBot.java +++ b/tgBotService/src/main/java/weatherproject/tgbotservice/telegram/TelegramBot.java @@ -101,9 +101,11 @@ public void handleChangeAvgTemp(String message) { } private void sendMessage(SendMessage sendMessage) { + log.info("Пытаемся отправить сообщение чату {} со следующим содержанием: {}", sendMessage.getChatId(), sendMessage.getText()); try { sendMessage.setReplyMarkup(LocationRequestButton.requestLocation()); execute(sendMessage); + log.info("Сообщение \"{}\" успешно отправлено!", sendMessage.getText()); } catch (TelegramApiException e) { log.error(e.getMessage()); }