Support Telegram Bot API 9.3#249
Merged
negasus merged 3 commits intogo-telegram:mainfrom Jan 23, 2026
Merged
Conversation
Topics in private chats: - Added has_topics_enabled field to User Gifts: - Added getUserGifts and getChatGifts methods - Replaced last_resale_star_count with last_resale_currency and last_resale_amount in UniqueGiftInfo - Replaced exclude_limited with exclude_limited_upgradable and exclude_limited_non_upgradable in GetBusinessAccountGiftsParams - Added exclude_from_blockchain to GetBusinessAccountGiftsParams - Added gift_upgrade_sent field to Message - Added gift_id, is_from_blockchain, is_premium, colors to UniqueGift - Added personal_total_count, personal_remaining_count, is_premium, has_colors, background, unique_gift_variant_count to Gift - Added is_upgrade_separate, unique_gift_number to GiftInfo and OwnedGiftRegular - Added gifts_from_channels to AcceptedGiftTypes - Added GiftBackground and UniqueGiftColors types - Added unique_gift_colors, paid_message_star_count to ChatFullInfo Streaming: - Added sendMessageDraft method for streaming partial messages - Added example at examples/streaming_draft/main.go Note: sendMessageDraft requires draft_id to be a numeric string (e.g. using UnixNano), not an arbitrary string format. Amp-Thread-ID: https://ampcode.com/threads/T-019bb2b8-4927-73e0-9f6a-1d13aea7de98 Co-authored-by: Amp <amp@ampcode.com>
Pass MessageThreadID from the incoming message to SendMessageDraft so responses appear in the same thread/topic when threaded mode is enabled for the bot.
The draft becomes visible but needs sendMessage at the end to properly finalize each response in the conversation.
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #249 +/- ##
==========================================
- Coverage 46.94% 46.49% -0.46%
==========================================
Files 29 29
Lines 2098 2110 +12
==========================================
- Hits 985 981 -4
- Misses 1066 1080 +14
- Partials 47 49 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds support for the Telegram Bot API 9.3
CleanShot.2026-01-12.at.17.21.19.mp4