ExGram.Model.RichBlockPreformatted (ex_gram v0.67.0)

Copy Markdown View Source

A preformatted text block, corresponding to the nested HTML tags <pre> and <code>.

Check the documentation of this model on Telegram Bot API

  • type: Type of the block, always "pre”
  • text: Text of the block
  • language (optional): Optional. The programming language of the text

Summary

Types

t()

@type t() :: %ExGram.Model.RichBlockPreformatted{
  language: String.t() | nil,
  text: ExGram.Model.RichText.t(),
  type: String.t()
}

Functions

decode_as()