Раздел
Rich-сообщения
Rich messages
The following methods and objects allow your bot to handle and send rich messages.
Методы 2
| Метод | Статус | Описание |
|---|---|---|
sendRichMessage | Поддерживается | Use this method to send rich messages. |
sendRichMessageDraft | Частично | Use this method to stream a partial rich message to a user while the message is being generated. |
Типы 85
| Тип | Описание |
|---|---|
RichMessage | Rich formatted message. |
InputRichMessage | Describes a rich message to be sent. |
InputRichMessageMedia | Describes a media element embedded in an outgoing rich message. |
RichMessageButton | This object represents a button in a RichMessage . |
RichText | This object represents a rich formatted text. |
RichTextBold | A bold text. |
RichTextItalic | An italicized text. |
RichTextUnderline | An underlined text. |
RichTextStrikethrough | A strikethrough text. |
RichTextSpoiler | A text covered by a spoiler. |
RichTextDateTime | Formatted date and time. |
RichTextTextMention | A mention of a Telegram user by their identifier. |
RichTextSubscript | A subscript text. |
RichTextSuperscript | A superscript text. |
RichTextMarked | A marked text. |
RichTextCode | A monowidth text. |
RichTextCustomEmoji | A custom emoji. |
RichTextMathematicalExpression | A mathematical expression. |
RichTextUrl | A text with a link. |
RichTextEmailAddress | A text with an email address. |
RichTextPhoneNumber | A text with a phone number. |
RichTextBankCardNumber | A text with a bank card number. |
RichTextMention | A mention by a username. |
RichTextHashtag | A hashtag. |
RichTextCashtag | A cashtag. |
RichTextBotCommand | A bot command. |
RichTextButton | A button. |
RichTextAnchor | An anchor. |
RichTextAnchorLink | A link to an anchor. |
RichTextReference | A reference. |
RichTextReferenceLink | A link to a reference. |
RichBlockCaption | Caption of a rich formatted block. |
RichBlockTableCell | Cell in a table. |
RichBlockListItem | An item of a list. |
RichBlock | This object represents a block in a rich formatted message. |
RichBlockParagraph | A text paragraph, corresponding to the HTML tag . |
RichBlockSectionHeading | A section heading, corresponding to the HTML tags , , , , , or . |
RichBlockPreformatted | A preformatted text block, corresponding to the nested HTML tags and . |
RichBlockFooter | A footer, corresponding to the HTML tag . |
RichBlockDivider | A divider, corresponding to the HTML tag . |
RichBlockMathematicalExpression | A block with a mathematical expression in LaTeX format, corresponding to the custom HTML tag . |
RichBlockAnchor | A block with an anchor, corresponding to the HTML tag with the attribute name . |
RichBlockList | A list of blocks, corresponding to the HTML tag or with multiple nested tags . |
RichBlockBlockQuotation | A block quotation, corresponding to the HTML tag . |
RichBlockExpandableBlockQuotation | A block quotation, corresponding to the HTML tag with custom attribute "expandable" . |
RichBlockPullQuotation | A quotation with centered text, loosely corresponding to the HTML tag . |
RichBlockCollage | A collage, corresponding to the custom HTML tag . |
RichBlockSlideshow | A slideshow, corresponding to the custom HTML tag . |
RichBlockTable | A table, corresponding to the HTML tag . |
RichBlockDetails | An expandable block for details disclosure, corresponding to the HTML tag . |
RichBlockMap | A block with a map, corresponding to the custom HTML tag . |
RichBlockButtons | A block containing a list of buttons that are shown in one row, corresponding to the custom HTML tag . |
RichBlockAnimation | A block with an animation, corresponding to the HTML tag . |
RichBlockAudio | A block with a music file, corresponding to the HTML tag . |
RichBlockDocument | A block with a general file, corresponding to the custom HTML tag . |
RichBlockPhoto | A block with a photo, corresponding to the HTML tag . |
RichBlockVideo | A block with a video, corresponding to the HTML tag . |
RichBlockVoiceNote | A block with a voice note, corresponding to the HTML tag . |
RichBlockThinking | A block with a “Thinking…” placeholder, corresponding to the custom HTML tag . |
InputRichBlockListItem | An item of a list to be sent. |
InputRichBlock | This object represents a block in a rich formatted message to be sent. |
InputRichBlockParagraph | A text paragraph, corresponding to the HTML tag . |
InputRichBlockSectionHeading | A section heading, corresponding to the HTML tags , , , , , or . |
InputRichBlockPreformatted | A preformatted text block, corresponding to the nested HTML tags and . |
InputRichBlockFooter | A footer, corresponding to the HTML tag . |
InputRichBlockDivider | A divider, corresponding to the HTML tag . |
InputRichBlockMathematicalExpression | A block with a mathematical expression in LaTeX format, corresponding to the custom HTML tag . |
InputRichBlockAnchor | A block with an anchor, corresponding to the HTML tag with the attribute name . |
InputRichBlockList | A list of blocks, corresponding to the HTML tag or with multiple nested tags . |
InputRichBlockBlockQuotation | A block quotation, corresponding to the HTML tag . |
InputRichBlockExpandableBlockQuotation | A block quotation, corresponding to the HTML tag with custom attribute "expandable" . |
InputRichBlockPullQuotation | A quotation with centered text, loosely corresponding to the HTML tag . |
InputRichBlockCollage | A collage, corresponding to the custom HTML tag . |
InputRichBlockSlideshow | A slideshow, corresponding to the custom HTML tag . |
InputRichBlockTable | A table, corresponding to the HTML tag . |
InputRichBlockDetails | An expandable block for details disclosure, corresponding to the HTML tag . |
InputRichBlockMap | A block with a map, corresponding to the custom HTML tag . |
InputRichBlockButtons | A block containing a list of buttons that are shown in one row, corresponding to the custom HTML tag . |
InputRichBlockAnimation | A block with an animation, corresponding to the HTML tag . |
InputRichBlockAudio | A block with a music file, corresponding to the HTML tag . |
InputRichBlockDocument | A block with a general file, corresponding to the custom HTML tag . |
InputRichBlockPhoto | A block with a photo, corresponding to the HTML tag . |
InputRichBlockVideo | A block with a video, corresponding to the HTML tag . |
InputRichBlockVoiceNote | A block with a voice note, corresponding to the HTML tag . |
InputRichBlockThinking | A block with a “Thinking…” placeholder, corresponding to the custom HTML tag . |