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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user