class Tourmaline::InlineKeyboardMarkup

Overview

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

Defined in:

tourmaline/types/api.cr
tourmaline/types/custom/inline_keyboard_markup.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def <<(row, btn : InlineKeyboardButton) #

[View source]
def <<(btns : Array(InlineKeyboardButton)) #

[View source]
def inline_keyboard : Array(Array(Tourmaline::InlineKeyboardButton)) #

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


[View source]
def inline_keyboard=(inline_keyboard : Array(Array(Tourmaline::InlineKeyboardButton))) #

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


[View source]