InputRichMessage

@Serializable
data class InputRichMessage(var blocks: List<InputRichBlock>? = null, var html: String? = null, var markdown: String? = null, var media: List<InputRichMessageMedia>? = null, var isRtl: Boolean? = null, var skipEntityDetection: Boolean? = null)(source)

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

Api reference

Constructors

Link copied to clipboard
constructor(blocks: List<InputRichBlock>? = null, html: String? = null, markdown: String? = null, media: List<InputRichMessageMedia>? = null, isRtl: Boolean? = null, skipEntityDetection: Boolean? = null)

Properties

Link copied to clipboard

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

Link copied to clipboard
var html: String?

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.

Link copied to clipboard

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

Link copied to clipboard

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.

Link copied to clipboard

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

Link copied to clipboard

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