-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(xtelebot): add InputMedia types and WithMedia option
This commit introduces new InputMedia types for various media formats (photo, video, animation, audio, document) and adds a WithMedia option for setting media parameters in message options. These additions enhance the bot's capability to send different types of media content. Key changes: - Add InputMedia interface and specific types for each media format - Implement GetType() method for each InputMedia type - Add WithMedia option for setting media parameters in API requests - Update relevant structs with new fields like ShowCaptionAboveMedia This update improves the flexibility and functionality of the xtelebot package, allowing for more diverse media handling in Telegram bot interactions.
- Loading branch information
Showing
1 changed file
with
321 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters