class Telecr::Markup::ReplyBuilder

Overview

Builder class for creating reply keyboards

Included Modules

Defined in:

markup/keyboard.cr

Constructors

Instance Method Summary

Instance methods inherited from module Telecr::Markup::ReplyButtons

request_contact(text, style : String | Nil = nil, icon_custom_emoji_id : String | Nil = nil) request_contact, request_location(text, style : String | Nil = nil, icon_custom_emoji_id : String | Nil = nil) request_location, request_poll(text, poll_type : String | Nil = nil, style : String | Nil = nil, icon_custom_emoji_id : String | Nil = nil) request_poll, text(content, style : String | Nil = nil, icon_custom_emoji_id : String | Nil = nil) text, web_app(text, url : String | Nil = nil, style : String | Nil = nil, icon_custom_emoji_id : String | Nil = nil) web_app

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def build #

Build the final keyboard


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

Set whether keyboard should hide after use


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

Set placeholder text


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

Set whether keyboard should resize


[View source]
def row(*buttons) #

Add a row of buttons


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

Set selective mode


[View source]