ExGram.Model.RichBlockListItem (ex_gram v0.67.0)

Copy Markdown View Source

An item of a list.

Check the documentation of this model on Telegram Bot API

  • label: Label of the item
  • blocks: The content of the item
  • has_checkbox (optional): Optional. True, if the item has a checkbox
  • is_checked (optional): Optional. True, if the item has a checked checkbox
  • value (optional): Optional. For ordered lists, the numeric value of the item label
  • type (optional): Optional. For ordered lists, the type of the item label; must be one of "a” for lowercase letters, "A” for uppercase letters, "i” for lowercase Roman numerals, "I” for uppercase Roman numerals, or "1” for decimal numbers

Summary

Types

t()

@type t() :: %ExGram.Model.RichBlockListItem{
  blocks: [ExGram.Model.RichBlock.t()],
  has_checkbox: boolean() | nil,
  is_checked: boolean() | nil,
  label: String.t(),
  type: String.t() | nil,
  value: integer() | nil
}

Functions

decode_as()