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:
2026-03-28 18:45:17 +03:00
parent 6fc2748779
commit 0e1b44a920
3 changed files with 24 additions and 11 deletions
+1 -1
View File
@@ -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>