Repository navigation
feat: support Bot API 10.4 - #46
Merged
Merged
Conversation
Regenerate the bindings (widgets, ephemeral replies to callback queries, TON wallet, chat share themes, getUniqueGift, deleteBusinessAccountGift) and fix TestChatID_OmitZero, which blocked the nightly regeneration because chat_id of sendMessage and the other send methods is optional now. - Context fills message_id and inline_message_id from a widget query, so ctx.EditMessageWidgetData targets the widget's message. - AutoAnswer answers widget queries too (15-second limit); AnswerWidgetQuery marks the update answered. - ctx.Ephemeral and ctx.ReplyEphemeral: an ephemeral reply to a callback query, to an ephemeral command, or to the sender. - FilterWidgetQueryData, FilterWidgetQuerySignData and FilterWidgetQuerySentTransaction. - tgtest.WidgetQuery and tgtest.SharedWidgetQuery update constructors. - client.TopicLink for links to topics in private chats with the bot. - StoryAreaPosition stays as a deprecated alias of AreaPosition. - MessageEntityBankCardNumber, MessageEntityTonAddress and MessageEntityDateTime constants. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Regenerates the bindings for Bot API 10.4 (widgets, ephemeral replies to callback queries, TON wallet, chat share themes,
getUniqueGift,deleteBusinessAccountGift) and unblocks the nightly go-generate run, which has failed since 2026-11-09 onTestChatID_OmitZero:chat_idofsendMessageand the other send methods is optional now.Changes
message_idandinline_message_idfrom a widget query (generator rulemessage_id→ctx.messageID()), soctx.EditMessageWidgetData()targets the widget's message.AutoAnsweranswers widget queries too (15-second limit);ctx.AnswerWidgetQuerymarks the update answered.ctx.Ephemeral()andctx.ReplyEphemeral(text): ephemeral reply to a callback query, to an ephemeral command, or to the sender. The callback query is still answered byAutoAnswer, as the API requires.FilterWidgetQueryData,FilterWidgetQuerySignData,FilterWidgetQuerySentTransaction.tgtest.WidgetQueryandtgtest.SharedWidgetQuery.client.TopicLink(ctx, threadID)fort.me/<bot>/<thread_id>.StoryAreaPositionkept as a deprecated alias ofAreaPosition, so the rename is not breaking.MessageEntityBankCardNumber,MessageEntityTonAddress,MessageEntityDateTime.Compatibility
No exported identifier was removed (checked against the diff of the generated files); the only rename is covered by the alias, hence
feat:.Testing
make lint(both modules) andmake test(includingsqlstore/sqlitetest) pass locally; new tests inbot_api_10_4_test.go.