module Telecr::Markup::ReplyButtons

Overview

===== Reply Keyboard Helpers ===== These create individual button definitions for reply keyboards

Direct including types

Defined in:

markup/keyboard.cr

Instance Method Summary

Instance Method Detail

def request_contact(text, style : String | Nil = nil, icon_custom_emoji_id : String | Nil = nil) #

Create a button that requests user's phone number


[View source]
def request_location(text, style : String | Nil = nil, icon_custom_emoji_id : String | Nil = nil) #

Create a button that requests user's location


[View source]
def request_poll(text, poll_type : String | Nil = nil, style : String | Nil = nil, icon_custom_emoji_id : String | Nil = nil) #

Create a button that creates a poll


[View source]
def text(content, style : String | Nil = nil, icon_custom_emoji_id : String | Nil = nil) #

Create a regular text button


[View source]
def web_app(text, url : String | Nil = nil, style : String | Nil = nil, icon_custom_emoji_id : String | Nil = nil) #

Create a web app button


[View source]