abstract class Tourmaline::KeyboardBuilder(T, G)

Overview

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

Direct Known Subclasses

Defined in:

tourmaline/keyboard_builder.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(force_reply : Bool = false, remove_keyboard : Bool = false, selective : Bool = false, keyboard : Array(T) = [] of T, resize : Bool = false, one_time : Bool = false, persistent : Bool = false, input_field_placeholder : Nil | String = nil) #

[View source]

Class Method Detail

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

[View source]
def self.buttons(buttons, **options) #

[View source]
def self.force_reply(value : Bool) #

[View source]
def self.inline_buttons(buttons, **options) #

[View source]
def self.one_time(value : Bool) #

[View source]
def self.remove_keyboard(value : Bool) #

[View source]
def self.resize(value : Bool) #

[View source]
def self.selective(value : Bool) #

[View source]

Instance Method Detail

def button(*args, **options) #

[View source]
def force_reply(value : Bool) #

[View source]
def force_reply=(force_reply : Bool) #

[View source]
def force_reply? : Bool #

[View source]
def input_field_placeholder(value : Nil | String) #

[View source]
def input_field_placeholder : String | Nil #

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

[View source]
abstract def keyboard(columns = nil) : G #

[View source]
def one_time(value : Bool) #

[View source]
def one_time=(one_time : Bool) #

[View source]
def one_time? : Bool #

[View source]
def persistent=(persistent : Bool) #

[View source]
def persistent? : Bool #

[View source]
def remove_keyboard(value : Bool) #

[View source]
def remove_keyboard=(remove_keyboard : Bool) #

[View source]
def remove_keyboard? : Bool #

[View source]
def resize(value : Bool) #

[View source]
def resize=(resize : Bool) #

[View source]
def resize? : Bool #

[View source]
def selective(value : Bool) #

[View source]
def selective=(selective : Bool) #

[View source]
def selective? : Bool #

[View source]