inputrichmessage

Raw MD
Describes a rich message to be sent

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

Fields

FieldTypeRequiredDescription
blocksArray of InputRichBlockOptionalContent of the rich message to send described as a list of blocks
htmlStringOptionalContent 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.
markdownStringOptionalContent 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.
mediaArray of InputRichMessageMediaOptionalList of media that are specified in the markdown or html fields using tg://photo?id=, tg://video?id=, tg://document?id=, and tg://audio?id= links
is_rtlBooleanOptionalPass True if the rich message must be shown right-to-left
skip_entity_detectionBooleanOptionalPass True to skip automatic detection of entities (e.g., URLs, email addresses, username mentions, hashtags, cashtags, bot commands, or phone numbers) in the text
Botlify Cloud Runtime
Credentials are auto-injected in .env — always load them with getenv(): BOT_TOKEN, ADMIN_CHAT_ID, BOT_USERNAME. Main database: database.db (SQLite, WAL mode). Runtime errors: error.log. Quick test: send to $ADMIN_CHAT_ID. Full details: Runtime Reference.