abstract class Tourmaline::KeyboardBuilder(T, G)

Overview

Base builder class for InlineKeyboardMarkup::Builder and ReplyKeyboardMarkup::Builder.

Direct Known Subclasses

Defined in:

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(force_reply = false, remove_keyboard = false, selective = false, keyboard = [] of T, resize = false, one_time = false) #

Class Method Detail

def self.build_keyboard(buttons : Array(T), columns = 1, wrap = nil) #

def self.buttons(buttons, **options) #

def self.force_reply(value : Bool) #

def self.inline_buttons(buttons, **options) #

def self.one_time(value : Bool) #

def self.remove_keyboard(value : Bool) #

def self.resize(value : Bool) #

def self.selective(value : Bool) #

Instance Method Detail

def button(*args, **options) #

def force_reply(value) #

def force_reply : Bool #

def force_reply=(force_reply : Bool) #

abstract def keyboard(columns = nil) : G #

def one_time(value) #

def one_time : Bool #

def one_time=(one_time : Bool) #

def remove_keyboard(value) #

def remove_keyboard : Bool #

def remove_keyboard=(remove_keyboard : Bool) #

def resize(value) #

def resize : Bool #

def resize=(resize : Bool) #

def selective(value) #

def selective : Bool #

def selective=(selective : Bool) #