module
Telecr::Markup::ReplyButtons
Overview
===== Reply Keyboard Helpers ===== These create individual button definitions for reply keyboards
Direct including types
Defined in:
markup/keyboard.crInstance Method Summary
-
#request_contact(text, style : String | Nil = nil, icon_custom_emoji_id : String | Nil = nil)
Create a button that requests user's phone number
-
#request_location(text, style : String | Nil = nil, icon_custom_emoji_id : String | Nil = nil)
Create a button that requests user's location
-
#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
-
#text(content, style : String | Nil = nil, icon_custom_emoji_id : String | Nil = nil)
Create a regular text button
-
#web_app(text, url : String | Nil = nil, style : String | Nil = nil, icon_custom_emoji_id : String | Nil = nil)
Create a web app button
Instance Method Detail
Create a button that requests user's phone number
Create a button that requests user's location
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
Create a regular text button
def web_app(text, url : String | Nil = nil, style : String | Nil = nil, icon_custom_emoji_id : String | Nil = nil)
#
Create a web app button