Skip to content

BOT API v10.4 - #441

Open
skiddgoddamn wants to merge 4 commits into
pengrad:masterfrom
skiddgoddamn:bot-api-10.4
Open

skiddgoddamn wants to merge 4 commits into
pengrad:masterfrom
skiddgoddamn:bot-api-10.4

Conversation

@skiddgoddamn

Copy link
Copy Markdown

Adds Bot API 10.4 (changelog). Upstream was at 10.3.

Widgets

  • Widget, Message.widget, ExternalReplyInfo.widget
  • SendWidget, SendSharedWidget, AnswerWidgetQuery, EditMessageWidgetData, EditSharedWidgetData
  • WidgetQuery, SharedWidgetQuery, Update.widgetQuery/sharedWidgetQuery
  • WidgetQueryType (+ Data, SignData, SentTransaction, Unknown fallback), WidgetQueryWallet
  • InputWidgetMessageContent, InputSharedWidgetMessageContent

Ephemeral messages

  • EphemeralMessageParameters.receiverUserId is optional, replyToCallbackQuery(id) factory
  • constructors without chatId for the 14 send methods (sendMessage, sendRichMessage, sendAnimation, sendAudio, sendContact, sendDocument, sendLivePhoto, sendLocation, sendPhoto, sendSticker, sendVenue, sendVideo, sendVideoNote, sendVoice)

Quotes from rich messages: TextQuote.richTexts, ReplyParameters.quoteRichTexts

TON wallet: TonWalletCard, TonWalletCardSticker, TonNft, TonNftAttribute, TonWalletTransfer, ChatFullInfo.tonWalletCard, Message.tonWalletTransfer, RichTextTonAddress; StoryAreaPosition renamed to AreaPosition (breaking, as in the API)

Chat share themes: ChatShareTheme*, EmojiType*, ChatShareThemeBackdrop(s), GetChatShareThemeBackdrops, ChatFullInfo.shareTheme

Gifts: GetUniqueGift, DeleteBusinessAccountGift

General: MessageEntity.Type ton_address, bank_card_number; custom_description_parse_mode/entities in VerifyUser/VerifyChat; PaidMessagesWaived, Message.paidMessagesWaived; version bumped to 10.4.0.

Tests: added offline BotApi104Test (JSON parsing and request parameters). Integration tests needing a token were not run, they compile. Note: on JDK 17 ModelTest fails in EqualsVerifier on an existing class (RichTextCode, "Unsupported class file major version 61"), so equals of the new classes was not verified by it.

🤖 Generated with Claude Code

skiddgoddamn and others added 4 commits November 9, 2026 17:22
Widgets, ephemeral replies to callback queries, rich message quotes, TON wallet, chat share themes, gifts.
See https://core.telegram.org/bots/api-changelog#november-9-2026

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tData

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tions

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mircoianese

Copy link
Copy Markdown
Collaborator

Hello! I pushed some minor corrections directly to this branch:

  • Added the missing Kotlin extensions for editMessageWidgetData and editSharedWidgetData
  • Changed the backdrop IDs from Int to Long (Telegram docs use "Integer" for 64-bit values)
  • Converted PaidMessagesWaived to Kotlin and aligned the widget Input* classes with the InputChecklist pattern

@mircoianese
mircoianese requested a review from pengrad November 9, 2026 16:45
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.

2 participants