Skip to content

feat: support Bot API 10.4 - #981

Closed
gnomgyibdr6hvr5y wants to merge 1 commit into
grammyjs:mainfrom
gnomgyibdr6hvr5y:feat/bot-api-10.4
Closed

gnomgyibdr6hvr5y wants to merge 1 commit into
grammyjs:mainfrom
gnomgyibdr6hvr5y:feat/bot-api-10.4

Conversation

@gnomgyibdr6hvr5y

Copy link
Copy Markdown

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

@gnomgyibdr6hvr5y
gnomgyibdr6hvr5y marked this pull request as ready for review November 12, 2026 12:43
@KnorpelSenf

Copy link
Copy Markdown
Member

same as grammyjs/types#87 (comment)

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