Conversation
…lds to `Message` type
…ameters to `SendPoll` method
There was a problem hiding this comment.
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, pollmedia/explanationMedia, poll option media). - Added managed bot access settings and reaction-deletion methods (
BotAccessSettings,Get/SetManagedBotAccessSettings,Delete(All)MessageReactions), and extendedGetChatAdministratorswithreturnBots.
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.
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.
No description provided.