ExGram.Model.InputRichBlockButtons (ex_gram v0.70.0)

Copy Markdown View Source

A block containing a list of buttons that are shown in one row, corresponding to the custom HTML tag <tg-button-row>.

Check the documentation of this model on Telegram Bot API

  • type: Type of the block, always "buttons”
  • buttons: List of 1-8 buttons to send
  • align (optional): Optional. Horizontal alignment of the buttons. Currently, must be one of "left”, "center”, or "right”.

Summary

Types

t()

@type t() :: %ExGram.Model.InputRichBlockButtons{
  align: String.t() | nil,
  buttons: [ExGram.Model.RichMessageButton.t()],
  type: String.t()
}

Functions

decode_as()