InputRichMessage¶
- class pyrogram.types.InputRichMessage[source]¶
Describes a rich message to create.
Exactly one of html, markdown or blocks must be provided: if more than one is set, the first one in that order is used and the others are ignored, and if none is set a
ValueErroris raised when the message is sent.- Parameters:
html (
str, optional) – Content of the rich message to send described using HTML formatting. See rich message formatting options for more details.markdown (
str, optional) – Content of the rich message to send described using Markdown formatting. See rich message formatting options for more details.is_rtl (
bool, optional) – Pass True if the rich message must be shown right-to-left.skip_entity_detection (
bool, 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 of
InputRichBlock, optional) – List of blocks that define the rich message content. See rich message formatting options for more details.media (
InputRichMessageMedia| List ofInputRichMessageMedia, optional) – Media the message refers to. With html or markdown, each entry needs anidand is referred to from the text astg://photo?id=,tg://video?id=ortg://audio?id=. With blocks, the entries carry the photo, document and user vectors the blocks index into.