Skip to content

10.1 Missing Methods and Types #22

Description

@SpEcHiDe

High Level

Rich Messages

Added support for [Rich Messages](https://core.telegram.org/bots/features#rich-messages), allowing bots to send highly structured text and stream AI-generated replies with seamless rich formatting.
Added the classes [RichTextBold](https://core.telegram.org/bots/api#richtextbold), [RichTextItalic](https://core.telegram.org/bots/api#richtextitalic), [RichTextUnderline](https://core.telegram.org/bots/api#richtextunderline), [RichTextStrikethrough](https://core.telegram.org/bots/api#richtextstrikethrough), [RichTextSpoiler](https://core.telegram.org/bots/api#richtextspoiler), [RichTextDateTime](https://core.telegram.org/bots/api#richtextdatetime), [RichTextTextMention](https://core.telegram.org/bots/api#richtexttextmention), [RichTextSubscript](https://core.telegram.org/bots/api#richtextsubscript), [RichTextSuperscript](https://core.telegram.org/bots/api#richtextsuperscript), [RichTextMarked](https://core.telegram.org/bots/api#richtextmarked), [RichTextCode](https://core.telegram.org/bots/api#richtextcode), [RichTextCustomEmoji](https://core.telegram.org/bots/api#richtextcustomemoji), [RichTextMathematicalExpression](https://core.telegram.org/bots/api#richtextmathematicalexpression), [RichTextUrl](https://core.telegram.org/bots/api#richtexturl), [RichTextEmailAddress](https://core.telegram.org/bots/api#richtextemailaddress), [RichTextPhoneNumber](https://core.telegram.org/bots/api#richtextphonenumber), [RichTextBankCardNumber](https://core.telegram.org/bots/api#richtextbankcardnumber), [RichTextMention](https://core.telegram.org/bots/api#richtextmention), [RichTextHashtag](https://core.telegram.org/bots/api#richtexthashtag), [RichTextCashtag](https://core.telegram.org/bots/api#richtextcashtag), [RichTextBotCommand](https://core.telegram.org/bots/api#richtextbotcommand), [RichTextAnchor](https://core.telegram.org/bots/api#richtextanchor), [RichTextAnchorLink](https://core.telegram.org/bots/api#richtextanchorlink), [RichTextReference](https://core.telegram.org/bots/api#richtextreference) and [RichTextReferenceLink](https://core.telegram.org/bots/api#richtextreferencelink), which represent different types of rich formatted text.
Added the class [RichText](https://core.telegram.org/bots/api#richtext), which represents rich formatted text.
Added the class [RichBlockCaption](https://core.telegram.org/bots/api#richblockcaption), which represents the caption of a rich formatted text.
Added the class [RichBlockTableCell](https://core.telegram.org/bots/api#richblocktablecell), which represents a cell in a table.
Added the class [RichBlockListItem](https://core.telegram.org/bots/api#richblocklistitem), which represents an item in a list.
Added the classes [RichBlockParagraph](https://core.telegram.org/bots/api#richblockparagraph), [RichBlockSectionHeading](https://core.telegram.org/bots/api#richblocksectionheading), [RichBlockPreformatted](https://core.telegram.org/bots/api#richblockpreformatted), [RichBlockFooter](https://core.telegram.org/bots/api#richblockfooter), [RichBlockDivider](https://core.telegram.org/bots/api#richblockdivider), [RichBlockMathematicalExpression](https://core.telegram.org/bots/api#richblockmathematicalexpression), [RichBlockAnchor](https://core.telegram.org/bots/api#richblockanchor), [RichBlockList](https://core.telegram.org/bots/api#richblocklist), [RichBlockBlockQuotation](https://core.telegram.org/bots/api#richblockblockquotation), [RichBlockPullQuotation](https://core.telegram.org/bots/api#richblockpullquotation), [RichBlockCollage](https://core.telegram.org/bots/api#richblockcollage), [RichBlockSlideshow](https://core.telegram.org/bots/api#richblockslideshow), [RichBlockTable](https://core.telegram.org/bots/api#richblocktable), [RichBlockDetails](https://core.telegram.org/bots/api#richblockdetails), [RichBlockMap](https://core.telegram.org/bots/api#richblockmap), [RichBlockAnimation](https://core.telegram.org/bots/api#richblockanimation), [RichBlockAudio](https://core.telegram.org/bots/api#richblockaudio), [RichBlockPhoto](https://core.telegram.org/bots/api#richblockphoto), [RichBlockVideo](https://core.telegram.org/bots/api#richblockvideo), [RichBlockVoiceNote](https://core.telegram.org/bots/api#richblockvoicenote) and [RichBlockThinking](https://core.telegram.org/bots/api#richblockthinking), which represent different types of blocks in a rich formatted message.
Added the class [RichBlock](https://core.telegram.org/bots/api#richblock), which represents a block in a rich formatted message.
Added the class [RichMessage](https://core.telegram.org/bots/api#richmessage), which represents a rich formatted message.
Added the field rich_message to the class [Message](https://core.telegram.org/bots/api#message).
Added the class [InputRichMessage](https://core.telegram.org/bots/api#inputrichmessage), describing a rich message to send.
Added the class [InputRichMessageContent](https://core.telegram.org/bots/api#inputrichmessagecontent) and allowed it to be used as [InputMessageContent](https://core.telegram.org/bots/api#inputmessagecontent) in results of inline, guest, and Web App queries.
Added the method [sendRichMessage](https://core.telegram.org/bots/api#sendrichmessage), allowing bots to send rich messages.
Added the method [sendRichMessageDraft](https://core.telegram.org/bots/api#sendrichmessagedraft), allowing bots to stream partial rich messages.
Added the parameter rich_message to the method [editMessageText](https://core.telegram.org/bots/api#editmessagetext), allowing bots to edit rich messages.

Join Request Queries

Added the field supports_join_request_queries to the class [User](https://core.telegram.org/bots/api#user).
Added the field guard_bot to the class [ChatFullInfo](https://core.telegram.org/bots/api#chatfullinfo).
Added the field query_id to the class [ChatJoinRequest](https://core.telegram.org/bots/api#chatjoinrequest).
Added the method [answerChatJoinRequestQuery](https://core.telegram.org/bots/api#answerchatjoinrequestquery).
Added the method [sendChatJoinRequestWebApp](https://core.telegram.org/bots/api#sendchatjoinrequestwebapp).

Polls

Added the class [Link](https://core.telegram.org/bots/api#link) and the field link to the class [PollMedia](https://core.telegram.org/bots/api#pollmedia).
Added the class [InputMediaLink](https://core.telegram.org/bots/api#inputmedialink) and allowed it to be used as [InputPollOptionMedia](https://core.telegram.org/bots/api#inputpolloptionmedia).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions