class TelegramBot::Models::InlineKeyboardButton

Overview

https://core.telegram.org/bots/api#inlinekeyboardbutton

Defined in:

telegram_bot/models.cr

Constructors

Instance Method Summary

Constructor methods inherited from class TelegramBot::Models::Base

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(pull : JSON::PullParser) #

https://core.telegram.org/bots/api#inlinekeyboardbutton


[View source]
def self.new(text : String, url : String | Nil = nil, login_url : LoginUrl | Nil = nil, callback_data : String | Nil = nil, switch_inline_query : String | Nil = nil, switch_inline_query_current_chat : String | Nil = nil, callback_game : CallbackGame | Nil = nil, pay : Bool | Nil = nil) #

[View source]

Instance Method Detail

def callback_data : String | Nil #

[View source]
def callback_data=(callback_data : String | Nil) #

[View source]
def callback_game : CallbackGame | Nil #

[View source]
def callback_game=(callback_game : CallbackGame | Nil) #

[View source]
def login_url : LoginUrl | Nil #

[View source]
def login_url=(login_url : LoginUrl | Nil) #

[View source]
def pay : Bool | Nil #

[View source]
def pay=(pay : Bool | Nil) #

[View source]
def switch_inline_query : String | Nil #

[View source]
def switch_inline_query=(switch_inline_query : String | Nil) #

[View source]
def switch_inline_query_current_chat : String | Nil #

[View source]
def switch_inline_query_current_chat=(switch_inline_query_current_chat : String | Nil) #

[View source]
def text : String #

[View source]
def text=(text : String) #

[View source]
def url : String | Nil #

[View source]
def url=(url : String | Nil) #

[View source]