View Source Telegex.Type.KeyboardButton (Telegex v1.0.0-rc.2)

This object represents one button of the reply keyboard. For simple text buttons, String can be used instead of this object to specify the button text. The optional fields web_app, request_user, request_chat, request_contact, request_location, and request_poll are mutually exclusive.

Link to this section Summary

Link to this section Types

@type t() :: %Telegex.Type.KeyboardButton{
  request_chat: Telegex.Type.KeyboardButtonRequestChat.t() | nil,
  request_contact: boolean() | nil,
  request_location: boolean() | nil,
  request_poll: Telegex.Type.KeyboardButtonPollType.t() | nil,
  request_user: Telegex.Type.KeyboardButtonRequestUser.t() | nil,
  text: String.t(),
  web_app: Telegex.Type.WebAppInfo.t() | nil
}