ExGram.Model.InputRichMessage (ex_gram v0.69.0)

Copy Markdown View Source

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

Check the documentation of this model on Telegram Bot API

  • blocks (optional): Optional. Content of the rich message to send described as a list of blocks
  • html (optional): 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 (optional): 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.
  • media (optional): 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
  • is_rtl (optional): Optional. Pass True if the rich message must be shown right-to-left
  • skip_entity_detection (optional): 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

Summary

Types

t()

@type t() :: %ExGram.Model.InputRichMessage{
  blocks: [ExGram.Model.InputRichBlock.t()] | nil,
  html: String.t() | nil,
  is_rtl: boolean() | nil,
  markdown: String.t() | nil,
  media: [ExGram.Model.InputRichMessageMedia.t()] | nil,
  skip_entity_detection: boolean() | nil
}

Functions

decode_as()