Skip to content

10.1.0

Latest

Choose a tag to compare

@nerzh nerzh released this 11 Jun 18:56
dfbead9

Bot API 10.1

Rich Messages

Added support for Rich Messages, allowing bots to send highly structured text and stream AI-generated replies with seamless rich formatting.
Added the classes RichTextBold, RichTextItalic, RichTextUnderline, RichTextStrikethrough, RichTextSpoiler, RichTextDateTime, RichTextTextMention, RichTextSubscript, RichTextSuperscript, RichTextMarked, RichTextCode, RichTextCustomEmoji, RichTextMathematicalExpression, RichTextUrl, RichTextEmailAddress, RichTextPhoneNumber, RichTextBankCardNumber, RichTextMention, RichTextHashtag, RichTextCashtag, RichTextBotCommand, RichTextAnchor, RichTextAnchorLink, RichTextReference and RichTextReferenceLink, which represent different types of rich formatted text.
Added the class RichText, which represents rich formatted text.
Added the class RichBlockCaption, which represents the caption of a rich formatted text.
Added the class RichBlockTableCell, which represents a cell in a table.
Added the class RichBlockListItem, which represents an item in a list.
Added the classes RichBlockParagraph, RichBlockSectionHeading, RichBlockPreformatted, RichBlockFooter, RichBlockDivider, RichBlockMathematicalExpression, RichBlockAnchor, RichBlockList, RichBlockBlockQuotation, RichBlockPullQuotation, RichBlockCollage, RichBlockSlideshow, RichBlockTable, RichBlockDetails, RichBlockMap, RichBlockAnimation, RichBlockAudio, RichBlockPhoto, RichBlockVideo, RichBlockVoiceNote and RichBlockThinking, which represent different types of blocks in a rich formatted message.
Added the class RichBlock, which represents a block in a rich formatted message.
Added the class RichMessage, which represents a rich formatted message.
Added the field rich_message to the class Message.
Added the class InputRichMessage, describing a rich message to send.
Added the class InputRichMessageContent and allowed it to be used as InputMessageContent in results of inline, guest, and Web App queries.
Added the method sendRichMessage, allowing bots to send rich messages.
Added the method sendRichMessageDraft, allowing bots to stream partial rich messages.
Added the parameter rich_message to the method editMessageText, allowing bots to edit rich messages.
Join Request Queries

Added the field supports_join_request_queries to the class User.
Added the field guard_bot to the class Chat.
Added the field query_id to the class ChatJoinRequest.
Added the method answerChatJoinRequestQuery.
Added the method sendChatJoinRequestWebApp.
Polls

Added the class Link and the field link to the class PollMedia.
Added the class InputMediaLink and allowed it to be used as InputPollOptionMedia.

Full Changelog: 10.0.0...10.1.0