Update PengradTelegramBot to improve chat ID retrieval and upgrade Telegram API version

- Refactor chat ID extraction logic into a separate method for clarity and maintainability.
- Handle cases where chat ID may not be accessible, logging a warning when not found.
- Upgrade Telegram Bot API dependency version from 6.2.0 to 7.1.1.
- Adjust BotRequestImpl to accommodate changes in chat ID retrieval logic.
- Make botAtomicReference in App class final for better thread safety.
This commit is contained in:
2026-03-03 13:26:14 +03:00
parent a06f9940ff
commit c43ba2ea8b
5 changed files with 63 additions and 19 deletions

View File

@@ -21,7 +21,7 @@
<dependency>
<groupId>com.github.pengrad</groupId>
<artifactId>java-telegram-bot-api</artifactId>
<version>6.2.0</version>
<version>7.1.1</version>
</dependency>
</dependencies>