Jido.Chat.Telegram.InlineKeyboardButton (Jido Chat Telegram v1.0.0)

Copy Markdown View Source

Typed inline keyboard button payload.

Summary

Functions

Creates a typed inline keyboard button.

Returns the Zoi schema for InlineKeyboardButton.

Converts button to Telegram API wire map.

Types

t()

@type t() :: %Jido.Chat.Telegram.InlineKeyboardButton{
  callback_data: nil | binary(),
  pay: nil | boolean(),
  switch_inline_query: nil | binary(),
  switch_inline_query_current_chat: nil | binary(),
  text: binary(),
  url: nil | binary()
}

Functions

new(attrs)

@spec new(map()) :: t()

Creates a typed inline keyboard button.

schema()

Returns the Zoi schema for InlineKeyboardButton.

to_wire(button)

@spec to_wire(t()) :: map()

Converts button to Telegram API wire map.