StaticGramBot API
Раздел

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

ТипОписание
RichMessageRich formatted message.
InputRichMessageDescribes a rich message to be sent.
InputRichMessageMediaDescribes a media element embedded in an outgoing rich message.
RichMessageButtonThis object represents a button in a RichMessage .
RichTextThis object represents a rich formatted text.
RichTextBoldA bold text.
RichTextItalicAn italicized text.
RichTextUnderlineAn underlined text.
RichTextStrikethroughA strikethrough text.
RichTextSpoilerA text covered by a spoiler.
RichTextDateTimeFormatted date and time.
RichTextTextMentionA mention of a Telegram user by their identifier.
RichTextSubscriptA subscript text.
RichTextSuperscriptA superscript text.
RichTextMarkedA marked text.
RichTextCodeA monowidth text.
RichTextCustomEmojiA custom emoji.
RichTextMathematicalExpressionA mathematical expression.
RichTextUrlA text with a link.
RichTextEmailAddressA text with an email address.
RichTextPhoneNumberA text with a phone number.
RichTextBankCardNumberA text with a bank card number.
RichTextMentionA mention by a username.
RichTextHashtagA hashtag.
RichTextCashtagA cashtag.
RichTextBotCommandA bot command.
RichTextButtonA button.
RichTextAnchorAn anchor.
RichTextAnchorLinkA link to an anchor.
RichTextReferenceA reference.
RichTextReferenceLinkA link to a reference.
RichBlockCaptionCaption of a rich formatted block.
RichBlockTableCellCell in a table.
RichBlockListItemAn item of a list.
RichBlockThis object represents a block in a rich formatted message.
RichBlockParagraphA text paragraph, corresponding to the HTML tag .
RichBlockSectionHeadingA section heading, corresponding to the HTML tags , , , , , or .
RichBlockPreformattedA preformatted text block, corresponding to the nested HTML tags and .
RichBlockFooterA footer, corresponding to the HTML tag .
RichBlockDividerA divider, corresponding to the HTML tag .
RichBlockMathematicalExpressionA block with a mathematical expression in LaTeX format, corresponding to the custom HTML tag .
RichBlockAnchorA block with an anchor, corresponding to the HTML tag with the attribute name .
RichBlockListA list of blocks, corresponding to the HTML tag or with multiple nested tags .
RichBlockBlockQuotationA block quotation, corresponding to the HTML tag .
RichBlockExpandableBlockQuotationA block quotation, corresponding to the HTML tag with custom attribute "expandable" .
RichBlockPullQuotationA quotation with centered text, loosely corresponding to the HTML tag .
RichBlockCollageA collage, corresponding to the custom HTML tag .
RichBlockSlideshowA slideshow, corresponding to the custom HTML tag .
RichBlockTableA table, corresponding to the HTML tag .
RichBlockDetailsAn expandable block for details disclosure, corresponding to the HTML tag .
RichBlockMapA block with a map, corresponding to the custom HTML tag .
RichBlockButtonsA block containing a list of buttons that are shown in one row, corresponding to the custom HTML tag .
RichBlockAnimationA block with an animation, corresponding to the HTML tag .
RichBlockAudioA block with a music file, corresponding to the HTML tag .
RichBlockDocumentA block with a general file, corresponding to the custom HTML tag .
RichBlockPhotoA block with a photo, corresponding to the HTML tag .
RichBlockVideoA block with a video, corresponding to the HTML tag .
RichBlockVoiceNoteA block with a voice note, corresponding to the HTML tag .
RichBlockThinkingA block with a “Thinking…” placeholder, corresponding to the custom HTML tag .
InputRichBlockListItemAn item of a list to be sent.
InputRichBlockThis object represents a block in a rich formatted message to be sent.
InputRichBlockParagraphA text paragraph, corresponding to the HTML tag .
InputRichBlockSectionHeadingA section heading, corresponding to the HTML tags , , , , , or .
InputRichBlockPreformattedA preformatted text block, corresponding to the nested HTML tags and .
InputRichBlockFooterA footer, corresponding to the HTML tag .
InputRichBlockDividerA divider, corresponding to the HTML tag .
InputRichBlockMathematicalExpressionA block with a mathematical expression in LaTeX format, corresponding to the custom HTML tag .
InputRichBlockAnchorA block with an anchor, corresponding to the HTML tag with the attribute name .
InputRichBlockListA list of blocks, corresponding to the HTML tag or with multiple nested tags .
InputRichBlockBlockQuotationA block quotation, corresponding to the HTML tag .
InputRichBlockExpandableBlockQuotationA block quotation, corresponding to the HTML tag with custom attribute "expandable" .
InputRichBlockPullQuotationA quotation with centered text, loosely corresponding to the HTML tag .
InputRichBlockCollageA collage, corresponding to the custom HTML tag .
InputRichBlockSlideshowA slideshow, corresponding to the custom HTML tag .
InputRichBlockTableA table, corresponding to the HTML tag .
InputRichBlockDetailsAn expandable block for details disclosure, corresponding to the HTML tag .
InputRichBlockMapA block with a map, corresponding to the custom HTML tag .
InputRichBlockButtonsA block containing a list of buttons that are shown in one row, corresponding to the custom HTML tag .
InputRichBlockAnimationA block with an animation, corresponding to the HTML tag .
InputRichBlockAudioA block with a music file, corresponding to the HTML tag .
InputRichBlockDocumentA block with a general file, corresponding to the custom HTML tag .
InputRichBlockPhotoA block with a photo, corresponding to the HTML tag .
InputRichBlockVideoA block with a video, corresponding to the HTML tag .
InputRichBlockVoiceNoteA block with a voice note, corresponding to the HTML tag .
InputRichBlockThinkingA block with a “Thinking…” placeholder, corresponding to the custom HTML tag .

Описания методов и типов взяты из официальной документации Telegram Bot API (Bot API 10.3). Адрес API: https://api.staticgram.top