View Source ExGram.Model.KeyboardButton (ex_gram v0.53.0)

This object represents one button of the reply keyboard. At most one of the optional fields must be used to specify type of the button. For simple text buttons, String can be used instead of this object to specify the button text.

Check the documentation of this model in



@type t() :: %ExGram.Model.KeyboardButton{
  request_chat: ExGram.Model.KeyboardButtonRequestChat.t() | nil,
  request_contact: boolean() | nil,
  request_location: boolean() | nil,
  request_poll: ExGram.Model.KeyboardButtonPollType.t() | nil,
  request_users: ExGram.Model.KeyboardButtonRequestUsers.t() | nil,
  text: String.t(),
  web_app: ExGram.Model.WebAppInfo.t() | nil