Update Telegram Bot API version and enhance message handling
- Upgrade `java-telegram-bot-api` dependency from version 7.1.1 to 9.4.1 in `pom.xml`. - Modify `sendFile` method in `BotResponseImpl` to log the sent message ID. - Replace deprecated `disableWebPagePreview` with `linkPreviewOptions` in `editMessage` and `edit` methods. - Refactor `createFromScreen` and related methods in `SendMethodUtils` to handle chat ID as a long type for better type safety.
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
<dependency>
|
||||
<groupId>com.github.pengrad</groupId>
|
||||
<artifactId>java-telegram-bot-api</artifactId>
|
||||
<version>7.1.1</version>
|
||||
<version>9.4.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user