Skip to content

class Tourmaline::InlineKeyboardMarkup
inherits Reference #

This object represents an inline keyboard that appears right next to the message it belongs to. Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will display unsupported message.

Included modules

JSON::Serializable

Constructors#

.new(inline_keyboard : Array(Array(Tourmaline::InlineKeyboardButton)) = [] of Array(Tourmaline::InlineKeyboardButton)) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#<<(btns : Array(InlineKeyboardButton)) #

View source

#inline_keyboard : Array(Array(Tourmaline::InlineKeyboardButton)) #

Array of button rows, each represented by an Array of InlineKeyboardButton objects

View source

#inline_keyboard=(inline_keyboard : Array(Array(Tourmaline::InlineKeyboardButton))) #

Array of button rows, each represented by an Array of InlineKeyboardButton objects

View source