Repository navigation
feat: support Bot API 10.4 - #981
Closed
gnomgyibdr6hvr5y wants to merge 1 commit into
Closed
gnomgyibdr6hvr5y wants to merge 1 commit into
gnomgyibdr6hvr5y wants to merge 1 commit into
Conversation
gnomgyibdr6hvr5y
marked this pull request as ready for review
November 12, 2026 12:43
Member
|
same as grammyjs/types#87 (comment) |
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.
Add Telegram Bot API 10.4 methods, widget query context shortcuts and filters, inline widget builders, and contextual widget actions. Allow callback-based ephemeral replies without chat_id across all 14 affected sending methods while preserving existing errors for ordinary replies without a target.
Register getChatShareThemeBackdrops as a method without parameters so raw calls pass AbortSignal correctly. Keep query metadata separate from Message and preserve optional chat and message identifiers for inline widget queries.
Validation: deno task dev passes with 46 groups and 546 steps, npm run backport passes, and the strict ES2022 consumer passes with the updated declarations. Three additional checks pass against the built Node.js output. A real application with 253 source files compiles and runs with the updated library. Real user interactions verify widget query answers and context edits, all 14 callback-based ephemeral sending methods without chat_id or receiver_user_id, and an ordinary application command. A native widget mini-game also receives and saves a real score. Gift lookup and backdrop lookup pass. Temporary test receivers restore the previous webhook on exit. No financial or destructive account actions were performed. Application instrumentation and the demo are excluded from this diff.
Draft: depends on grammyjs/types#87 and the subsequent types release. Before this PR is ready to merge, replace the existing @grammyjs/types dependency and both CDN imports with the actual published release. The current 5.0.0 dependency does not include Bot API 10.4, so CI still needs that release. Local validation used the accompanying updated declarations through temporary dependency substitution, which is excluded from this diff. No speculative package version is assigned.
Reference: https://core.telegram.org/bots/api-changelog#november-9-2026