Skip to content

Conversation

@dhamidi
Copy link

@dhamidi dhamidi commented Jan 12, 2026

Adds support for the Telegram Bot API 9.3

CleanShot.2026-01-12.at.17.21.19.mp4

dhamidi and others added 3 commits January 12, 2026 17:02
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant