feat: Support Telegram Bot API v10.0#1303
Open
LuoYe17 wants to merge 2 commits into
Open
Conversation
Add the 7 new methods introduced in Bot API 10.0: - answerGuestQuery (Guest Mode) - deleteMessageReaction - deleteAllMessageReactions - sendLivePhoto - getManagedBotAccessSettings - setManagedBotAccessSettings - getUserPersonalChatMessages Also bumps Bot API badge to 10.0, regenerates doc/api.md, and adds skipped test stubs for the new methods following existing conventions.
Author
|
@yagop Please check |
Owner
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.
Summary
Adds support for Telegram Bot API v10.0 (May 8, 2026).
New methods
#answerGuestQuery(Guest Mode)#deleteMessageReaction#deleteAllMessageReactions#sendLivePhoto#getManagedBotAccessSettings#setManagedBotAccessSettings#getUserPersonalChatMessagesOther
doc/api.mdvianpm run docNotes on type-only additions
Bot API 10.0 also introduces several new types that flow through the existing HTTP wrapper without needing dedicated code paths (
SentGuestMessage,LivePhoto,InputMediaLivePhoto,PaidMediaLivePhoto,InputPaidMediaLivePhoto,PollMedia,InputPollMedia,InputPollOptionMedia,BotAccessSettings,InputMediaSticker,InputMediaLocation,InputMediaVenue). Existing methods likesendPoll,sendMediaGroup,editMessageMedia, andgetChatAdministratorsaccept the new optional parameters via the existingform/optionsargument and pass them through.Tested
npm run eslintpassesnpm run build(babel) passesnpm run doc(jsdoc2md) regenerates cleanlyTelegramBot.prototype