class TelegramBot::Models::KeyboardButton

Overview

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

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#keyboardbutton


[View source]
def self.new(text : String, request_contact : Bool | Nil = nil, request_location : Bool | Nil = nil) #

[View source]

Instance Method Detail

def request_contact : Bool | Nil #

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

[View source]
def request_location : Bool | Nil #

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

[View source]
def text : String #

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

[View source]