InputRichMessage

class aiogram.types.input_rich_message.InputRichMessage(*, html: str | None = None, markdown: str | None = None, is_rtl: bool | None = None, skip_entity_detection: bool | None = None, blocks: list[Annotated[InputRichBlockParagraph | InputRichBlockSectionHeading | InputRichBlockPreformatted | InputRichBlockFooter | InputRichBlockDivider | InputRichBlockMathematicalExpression | InputRichBlockAnchor | InputRichBlockList | InputRichBlockBlockQuotation | InputRichBlockPullQuotation | InputRichBlockCollage | InputRichBlockSlideshow | InputRichBlockTable | InputRichBlockDetails | InputRichBlockMap | InputRichBlockAnimation | InputRichBlockAudio | InputRichBlockPhoto | InputRichBlockVideo | InputRichBlockVoiceNote | InputRichBlockThinking, FieldInfo(annotation=NoneType, required=True, discriminator='type')]] | None = None, media: list[InputRichMessageMedia] | None = None, **extra_data: Any)[source]

Describes a rich message to be sent. Exactly one of the fields html, markdown, or blocks must be used.

Source: https://core.telegram.org/bots/api#inputrichmessage

html: str | None

Optional. Content of the rich message to send described using HTML formatting. See rich message formatting options for more details. Use media field to specify the media used in the message

markdown: str | None

Optional. Content of the rich message to send described using Markdown formatting. See rich message formatting options for more details. Use media field to specify the media used in the message

is_rtl: bool | None

Optional. Pass True if the rich message must be shown right-to-left

skip_entity_detection: bool | None

Optional. Pass True to skip automatic detection of entities (e.g., URLs, email addresses, username mentions, hashtags, cashtags, bot commands, or phone numbers) in the text

blocks: list[InputRichBlockUnion] | None

Optional. Content of the rich message to send described as a list of blocks

media: list[InputRichMessageMedia] | None

Optional. List of media that are specified in the markdown or html fields using tg://photo?id=, tg://video?id=, and tg://audio?id= links