Skip to content

Telegram Bot API 10.1#200

Merged
vjik merged 19 commits into
masterfrom
api101
Jun 12, 2026
Merged

Telegram Bot API 10.1#200
vjik merged 19 commits into
masterfrom
api101

Conversation

@vjik

@vjik vjik commented Jun 12, 2026

Copy link
Copy Markdown
Member

No description provided.

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 library to match Telegram Bot API 10.1 by adding support for rich messages (rich blocks + rich text), chat-join-request query features, and new link media types, alongside the required parsing, API methods, and test coverage.

Changes:

  • Add RichText*, RichBlock*, and RichMessage types plus parsing support (RichTextValue, RichBlockValue).
  • Add new API methods (sendRichMessage, sendRichMessageDraft, answerChatJoinRequestQuery, sendChatJoinRequestWebApp) and extend editMessageText with rich_message.
  • Extend existing types for 10.1 fields (User, Message, ChatJoinRequest, ChatFullInfo, PollMedia) and update docs/changelog.

Reviewed changes

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

Show a summary per file
File Description
tests/Type/UserTest.php Tests new supportsJoinRequestQueries
tests/Type/RichTextUrlTest.php Adds RichTextUrl tests
tests/Type/RichTextUnderlineTest.php Adds RichTextUnderline tests
tests/Type/RichTextTextMentionTest.php Adds RichTextTextMention tests
tests/Type/RichTextSuperscriptTest.php Adds RichTextSuperscript tests
tests/Type/RichTextSubscriptTest.php Adds RichTextSubscript tests
tests/Type/RichTextStrikethroughTest.php Adds RichTextStrikethrough tests
tests/Type/RichTextSpoilerTest.php Adds RichTextSpoiler tests
tests/Type/RichTextReferenceTest.php Adds RichTextReference tests
tests/Type/RichTextReferenceLinkTest.php Adds RichTextReferenceLink tests
tests/Type/RichTextPhoneNumberTest.php Adds RichTextPhoneNumber tests
tests/Type/RichTextMentionTest.php Adds RichTextMention tests
tests/Type/RichTextMathematicalExpressionTest.php Adds RichTextMathExpression tests
tests/Type/RichTextMarkedTest.php Adds RichTextMarked tests
tests/Type/RichTextItalicTest.php Adds RichTextItalic tests
tests/Type/RichTextHashtagTest.php Adds RichTextHashtag tests
tests/Type/RichTextEmailAddressTest.php Adds RichTextEmailAddress tests
tests/Type/RichTextDateTimeTest.php Adds RichTextDateTime tests
tests/Type/RichTextCustomEmojiTest.php Adds RichTextCustomEmoji tests
tests/Type/RichTextCodeTest.php Adds RichTextCode tests
tests/Type/RichTextCashtagTest.php Adds RichTextCashtag tests
tests/Type/RichTextBotCommandTest.php Adds RichTextBotCommand tests
tests/Type/RichTextBoldTest.php Adds RichTextBold tests
tests/Type/RichTextBankCardNumberTest.php Adds RichTextBankCardNumber tests
tests/Type/RichTextAnchorTest.php Adds RichTextAnchor tests
tests/Type/RichTextAnchorLinkTest.php Adds RichTextAnchorLink tests
tests/Type/RichMessageTest.php Tests RichMessage parsing
tests/Type/RichBlockVoiceNoteTest.php Tests RichBlockVoiceNote
tests/Type/RichBlockVideoTest.php Tests RichBlockVideo
tests/Type/RichBlockThinkingTest.php Tests RichBlockThinking
tests/Type/RichBlockTableTest.php Tests RichBlockTable
tests/Type/RichBlockTableCellTest.php Tests RichBlockTableCell
tests/Type/RichBlockSlideshowTest.php Tests RichBlockSlideshow
tests/Type/RichBlockSectionHeadingTest.php Tests RichBlockSectionHeading
tests/Type/RichBlockPullQuotationTest.php Tests RichBlockPullQuotation
tests/Type/RichBlockPreformattedTest.php Tests RichBlockPreformatted
tests/Type/RichBlockPhotoTest.php Tests RichBlockPhoto
tests/Type/RichBlockParagraphTest.php Tests RichBlockParagraph
tests/Type/RichBlockMathematicalExpressionTest.php Tests RichBlockMathExpression
tests/Type/RichBlockMapTest.php Tests RichBlockMap
tests/Type/RichBlockListTest.php Tests RichBlockList
tests/Type/RichBlockListItemTest.php Tests RichBlockListItem
tests/Type/RichBlockFooterTest.php Tests RichBlockFooter
tests/Type/RichBlockDividerTest.php Tests RichBlockDivider
tests/Type/RichBlockDetailsTest.php Tests RichBlockDetails
tests/Type/RichBlockCollageTest.php Tests RichBlockCollage
tests/Type/RichBlockCaptionTest.php Tests RichBlockCaption
tests/Type/RichBlockBlockQuotationTest.php Tests RichBlockBlockQuotation
tests/Type/RichBlockAudioTest.php Tests RichBlockAudio
tests/Type/RichBlockAnimationTest.php Tests RichBlockAnimation
tests/Type/RichBlockAnchorTest.php Tests RichBlockAnchor
tests/Type/PollMediaTest.php Tests PollMedia::link
tests/Type/MessageTest.php Tests Message::richMessage
tests/Type/LinkTest.php Adds Link type tests
tests/Type/InputRichMessageTest.php Adds InputRichMessage tests
tests/Type/InputMediaLinkTest.php Adds InputMediaLink tests
tests/Type/Inline/InputRichMessageContentTest.php Tests inline rich content
tests/Type/ChatJoinRequestTest.php Tests ChatJoinRequest::queryId
tests/Type/ChatFullInfoTest.php Tests ChatFullInfo::guardBot
tests/TelegramBotApi/TelegramBotApiTest.php Tests new API methods
tests/ParseResult/ValueProcessor/RichTextValueTest.php Tests RichTextValue processor
tests/ParseResult/ValueProcessor/RichBlockValueTest.php Tests RichBlockValue processor
tests/Method/UpdatingMessage/EditMessageTextTest.php Tests rich_message in edit
tests/Method/SendRichMessageTest.php Tests SendRichMessage method
tests/Method/SendRichMessageDraftTest.php Tests SendRichMessageDraft
tests/Method/SendChatJoinRequestWebAppTest.php Tests SendChatJoinRequestWebApp
tests/Method/AnswerChatJoinRequestQueryTest.php Tests AnswerChatJoinRequestQuery
src/Type/User.php Add supportsJoinRequestQueries
src/Type/RichTextUrl.php Add RichTextUrl type
src/Type/RichTextUnderline.php Add RichTextUnderline type
src/Type/RichTextTextMention.php Add RichTextTextMention type
src/Type/RichTextSuperscript.php Add RichTextSuperscript type
src/Type/RichTextSubscript.php Add RichTextSubscript type
src/Type/RichTextStrikethrough.php Add RichTextStrikethrough type
src/Type/RichTextSpoiler.php Add RichTextSpoiler type
src/Type/RichTextReferenceLink.php Add RichTextReferenceLink type
src/Type/RichTextReference.php Add RichTextReference type
src/Type/RichTextPhoneNumber.php Add RichTextPhoneNumber type
src/Type/RichTextMention.php Add RichTextMention type
src/Type/RichTextMathematicalExpression.php Add RichTextMathExpression type
src/Type/RichTextMarked.php Add RichTextMarked type
src/Type/RichTextItalic.php Add RichTextItalic type
src/Type/RichTextHashtag.php Add RichTextHashtag type
src/Type/RichTextEmailAddress.php Add RichTextEmailAddress type
src/Type/RichTextDateTime.php Add RichTextDateTime type
src/Type/RichTextCustomEmoji.php Add RichTextCustomEmoji type
src/Type/RichTextCode.php Add RichTextCode type
src/Type/RichTextCashtag.php Add RichTextCashtag type
src/Type/RichTextBotCommand.php Add RichTextBotCommand type
src/Type/RichTextBold.php Add RichTextBold type
src/Type/RichTextBankCardNumber.php Add RichTextBankCardNumber type
src/Type/RichTextAnchorLink.php Add RichTextAnchorLink type
src/Type/RichTextAnchor.php Add RichTextAnchor type
src/Type/RichText.php Introduce RichText interface
src/Type/RichMessage.php Introduce RichMessage type
src/Type/RichBlockVoiceNote.php Add RichBlockVoiceNote type
src/Type/RichBlockVideo.php Add RichBlockVideo type
src/Type/RichBlockThinking.php Add RichBlockThinking type
src/Type/RichBlockTableCell.php Add RichBlockTableCell type
src/Type/RichBlockTable.php Add RichBlockTable type
src/Type/RichBlockSlideshow.php Add RichBlockSlideshow type
src/Type/RichBlockSectionHeading.php Add RichBlockSectionHeading type
src/Type/RichBlockPullQuotation.php Add RichBlockPullQuotation type
src/Type/RichBlockPreformatted.php Add RichBlockPreformatted type
src/Type/RichBlockPhoto.php Add RichBlockPhoto type
src/Type/RichBlockParagraph.php Add RichBlockParagraph type
src/Type/RichBlockMathematicalExpression.php Add RichBlockMathExpression type
src/Type/RichBlockMap.php Add RichBlockMap type
src/Type/RichBlockListItem.php Add RichBlockListItem type
src/Type/RichBlockList.php Add RichBlockList type
src/Type/RichBlockFooter.php Add RichBlockFooter type
src/Type/RichBlockDivider.php Add RichBlockDivider type
src/Type/RichBlockDetails.php Add RichBlockDetails type
src/Type/RichBlockCollage.php Add RichBlockCollage type
src/Type/RichBlockCaption.php Add RichBlockCaption type
src/Type/RichBlockBlockQuotation.php Add RichBlockBlockQuotation type
src/Type/RichBlockAudio.php Add RichBlockAudio type
src/Type/RichBlockAnimation.php Add RichBlockAnimation type
src/Type/RichBlockAnchor.php Add RichBlockAnchor type
src/Type/RichBlock.php Introduce RichBlock interface
src/Type/PollMedia.php Add PollMedia::link field
src/Type/Message.php Add Message::richMessage field
src/Type/Link.php Introduce Link type
src/Type/InputRichMessage.php Introduce InputRichMessage
src/Type/InputMediaLink.php Introduce InputMediaLink
src/Type/Inline/InputRichMessageContent.php Add inline rich content
src/Type/ChatJoinRequest.php Add ChatJoinRequest::queryId
src/Type/ChatFullInfo.php Add ChatFullInfo::guardBot
src/TelegramBotApi.php Add new API wrappers
src/ParseResult/ValueProcessor/RichTextValue.php Add rich text processor
src/ParseResult/ValueProcessor/RichBlockValue.php Add rich block processor
src/ParseResult/ObjectFactory.php Register RichBlock processor
src/Method/UpdatingMessage/EditMessageText.php Add rich_message support
src/Method/SendRichMessageDraft.php Add sendRichMessageDraft
src/Method/SendRichMessage.php Add sendRichMessage
src/Method/SendChatJoinRequestWebApp.php Add sendChatJoinRequestWebApp
src/Method/AnswerChatJoinRequestQuery.php Add answerChatJoinRequestQuery
README.md Update supported API version
CHANGELOG.md Document 10.1 additions

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

Comment on lines 33 to 37
private ?array $entities = null,
private ?LinkPreviewOptions $linkPreviewOptions = null,
private ?InlineKeyboardMarkup $replyMarkup = null,
private ?InputRichMessage $richMessage = null,
) {}
@vjik vjik merged commit fde47ff into master Jun 12, 2026
19 checks passed
@vjik vjik deleted the api101 branch June 12, 2026 05:48
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