Skip to content

Commit

Permalink
Update TelegramBot.java
Browse files Browse the repository at this point in the history
  • Loading branch information
XyL1GaN4eG committed Jul 27, 2024
1 parent 34f61b8 commit cdc2cb3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit cdc2cb3

Please sign in to comment.