Skip to content

Telegram Bot API 10.0#199

Merged
vjik merged 32 commits into
masterfrom
api10
May 9, 2026
Merged

Telegram Bot API 10.0#199
vjik merged 32 commits into
masterfrom
api10

Conversation

@vjik

@vjik vjik commented May 9, 2026

Copy link
Copy Markdown
Member

No description provided.

vjik added 30 commits May 9, 2026 08:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the PHP Telegram Bot API client to cover Telegram Bot API 10.0 additions, expanding both the type system and the TelegramBotApi surface with new entities (guest queries, live photos, poll media) and new/updated methods, plus corresponding test coverage and release notes.

Changes:

  • Added support for guest queries (supportsGuestQueries, guestMessage, guestQueryId, AnswerGuestQuery, SentGuestMessage).
  • Added live photo and poll media support across types and methods (LivePhoto, PollMedia, SendLivePhoto, poll media/explanationMedia, poll option media).
  • Added managed bot access settings and reaction-deletion methods (BotAccessSettings, Get/SetManagedBotAccessSettings, Delete(All)MessageReactions), and extended GetChatAdministrators with returnBots.

Reviewed changes

Copilot reviewed 73 out of 73 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/Type/UserTest.php Extends User tests for supportsGuestQueries.
tests/Type/Update/UpdateTest.php Adds coverage for guestMessage update payload and members_only in poll payload.
tests/Type/SentGuestMessageTest.php Adds tests for new SentGuestMessage type parsing.
tests/Type/PollTest.php Adds coverage for poll membersOnly, countryCodes, and poll media fields.
tests/Type/PollOptionTest.php Adds coverage for poll option media parsing.
tests/Type/PollMediaTest.php Adds tests for new PollMedia type parsing.
tests/Type/PaidMediaLivePhotoTest.php Adds tests for PaidMediaLivePhoto type.
tests/Type/MessageTest.php Extends Message tests for guest fields and livePhoto.
tests/Type/LivePhotoTest.php Adds tests for new LivePhoto type parsing.
tests/Type/InputPollOptionTest.php Adds coverage for optional poll option media serialization.
tests/Type/InputPaidMediaLivePhotoTest.php Adds request serialization coverage for InputPaidMediaLivePhoto.
tests/Type/InputMediaVenueTest.php Adds request serialization coverage for InputMediaVenue.
tests/Type/InputMediaStickerTest.php Adds request serialization coverage for InputMediaSticker.
tests/Type/InputMediaLocationTest.php Adds request serialization coverage for InputMediaLocation.
tests/Type/InputMediaLivePhotoTest.php Adds request serialization coverage for InputMediaLivePhoto.
tests/Type/ExternalReplyInfoTest.php Extends parsing coverage for livePhoto and poll members_only.
tests/Type/ChatPermissionsTest.php Extends parsing/serialization coverage for canReactToMessages.
tests/Type/ChatMemberRestrictedTest.php Extends parsing coverage for canReactToMessages on restricted members.
tests/Type/BotAccessSettingsTest.php Adds tests for new BotAccessSettings type parsing.
tests/TelegramBotApi/TelegramBotApiTest.php Adds API-level tests for new/updated methods (guest query answer, reactions deletion, access settings, live photo send, etc.).
tests/ParseResult/ValueProcessor/ChatMemberValueTest.php Updates chat member parsing fixtures for can_react_to_messages.
tests/Method/UpdatingMessage/StopPollTest.php Updates stopPoll parsing fixture for poll members_only.
tests/Method/SetManagedBotAccessSettingsTest.php Adds tests for new SetManagedBotAccessSettings method.
tests/Method/SendPollTest.php Extends request serialization coverage for poll media, option media, members_only, country codes, and file collection.
tests/Method/SendMessageDraftTest.php Updates tests for SendMessageDraft with optional text.
tests/Method/SendLivePhotoTest.php Adds tests for new SendLivePhoto method request serialization and parsing.
tests/Method/Inline/AnswerGuestQueryTest.php Adds tests for new answerGuestQuery method.
tests/Method/GetUserPersonalChatMessagesTest.php Adds tests for new getUserPersonalChatMessages method.
tests/Method/GetManagedBotAccessSettingsTest.php Adds tests for new getManagedBotAccessSettings method.
tests/Method/GetChatAdministratorsTest.php Adds coverage for new returnBots parameter.
tests/Method/DeleteMessageReactionTest.php Adds tests for new deleteMessageReaction method.
tests/Method/DeleteAllMessageReactionsTest.php Adds tests for new deleteAllMessageReactions method.
src/Type/User.php Adds supportsGuestQueries field + request array mapping.
src/Type/Update/Update.php Adds guestMessage update field.
src/Type/SentGuestMessage.php Introduces SentGuestMessage type.
src/Type/PollOption.php Adds media field to poll option type.
src/Type/PollMedia.php Introduces PollMedia type for poll-related media payloads.
src/Type/Poll.php Adds membersOnly, countryCodes, and poll media fields.
src/Type/PaidMediaLivePhoto.php Introduces PaidMediaLivePhoto type.
src/Type/Message.php Adds guest-related fields and livePhoto to message type.
src/Type/LivePhoto.php Introduces LivePhoto type.
src/Type/InputPollOptionMedia.php Introduces interface for poll option media request payloads.
src/Type/InputPollOption.php Adds optional media and enables file collection during serialization.
src/Type/InputPollMedia.php Introduces interface for poll media request payloads.
src/Type/InputPaidMediaLivePhoto.php Introduces input type for paid live photo media with file collection support.
src/Type/InputMediaVideo.php Enables video input media to be used as poll/poll-option media.
src/Type/InputMediaVenue.php Introduces venue input media for poll/poll-option media contexts.
src/Type/InputMediaSticker.php Introduces sticker input media for poll-option media contexts.
src/Type/InputMediaPhoto.php Enables photo input media to be used as poll/poll-option media.
src/Type/InputMediaLocation.php Introduces location input media for poll/poll-option media contexts.
src/Type/InputMediaLivePhoto.php Introduces live photo input media and poll/poll-option media support.
src/Type/InputMediaDocument.php Enables document input media to be used as poll media.
src/Type/InputMediaAudio.php Enables audio input media to be used as poll media.
src/Type/InputMediaAnimation.php Enables animation input media to be used as poll/poll-option media.
src/Type/ExternalReplyInfo.php Adds livePhoto to external reply info type.
src/Type/ChatPermissions.php Adds canReactToMessages field + request array mapping.
src/Type/ChatMemberRestricted.php Adds canReactToMessages field.
src/Type/BotAccessSettings.php Introduces BotAccessSettings type.
src/TelegramBotApi.php Wires new/updated API methods and updated parameter/type support.
src/Method/SetManagedBotAccessSettings.php Adds setManagedBotAccessSettings method implementation.
src/Method/SendPoll.php Extends poll sending to support media + file collection for option/media payloads.
src/Method/SendMessageDraft.php Makes text optional in request building.
src/Method/SendMediaGroup.php Extends media group to accept InputMediaLivePhoto.
src/Method/SendLivePhoto.php Adds sendLivePhoto method implementation.
src/Method/Inline/AnswerGuestQuery.php Adds answerGuestQuery method implementation.
src/Method/GetUserPersonalChatMessages.php Adds getUserPersonalChatMessages method implementation.
src/Method/GetManagedBotAccessSettings.php Adds getManagedBotAccessSettings method implementation.
src/Method/GetChatAdministrators.php Adds return_bots support to method payload.
src/Method/DeleteMessageReaction.php Adds deleteMessageReaction method implementation.
src/Method/DeleteAllMessageReactions.php Adds deleteAllMessageReactions method implementation.
README.md Updates stated supported Telegram Bot API version to 10.0.
CHANGELOG.md Adds 0.21 release notes enumerating new API 10.0 support.
AGENTS.md Adds contributor/agent testing guidance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread AGENTS.md
@vjik vjik merged commit f9d3448 into master May 9, 2026
22 checks passed
@vjik vjik deleted the api10 branch May 9, 2026 12:07
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