Skip to content

feat: Support Telegram Bot API v10.0#1303

Open
LuoYe17 wants to merge 2 commits into
yagop:masterfrom
LuoYe17:feat/bot-api-10.0
Open

feat: Support Telegram Bot API v10.0#1303
LuoYe17 wants to merge 2 commits into
yagop:masterfrom
LuoYe17:feat/bot-api-10.0

Conversation

@LuoYe17
Copy link
Copy Markdown

@LuoYe17 LuoYe17 commented May 16, 2026

Summary

Adds support for Telegram Bot API v10.0 (May 8, 2026).

New methods

  • #answerGuestQuery (Guest Mode)
  • #deleteMessageReaction
  • #deleteAllMessageReactions
  • #sendLivePhoto
  • #getManagedBotAccessSettings
  • #setManagedBotAccessSettings
  • #getUserPersonalChatMessages

Other

  • Bumps Bot API badge in README from v9.6 → v10.0
  • Updates CHANGELOG under Unreleased
  • Regenerates doc/api.md via npm run doc
  • Adds skipped test stubs for the new methods, matching the existing convention used for similar methods that need a real Telegram environment

Notes 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 like sendPoll, sendMediaGroup, editMessageMedia, and getChatAdministrators accept the new optional parameters via the existing form / options argument and pass them through.

Tested

  • npm run eslint passes
  • npm run build (babel) passes
  • npm run doc (jsdoc2md) regenerates cleanly
  • All 7 new methods are present on TelegramBot.prototype

LuoYe17 and others added 2 commits May 16, 2026 11:05
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.
@LuoYe17
Copy link
Copy Markdown
Author

LuoYe17 commented May 16, 2026

@yagop Please check

@yagop
Copy link
Copy Markdown
Owner

yagop commented May 17, 2026

Hey @LuoYe17 first of all, thanks for your contribution.

But as we are currently working on a full TypeScript rewrite in #1302 we may not merge your MR. Support for those methods will land on the #1302

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