Class: Telegrammer::DataTypes::ReplyKeyboardMarkup
- Defined in:
- lib/telegrammer/data_types/reply_keyboard_markup.rb
Overview
Telegram ReplyKeyboardMarkup data type.
This object represents a custom keyboard with reply options (see Introduction to bots for details and examples).
See more at core.telegram.org/bots/api#replykeyboardmarkup
Instance Attribute Summary collapse
-
#keyboard ⇒ Array
Array of button rows, each represented by an Array of Strings.
-
#one_time_keyboard ⇒ Boolean
Optional.
-
#resize_keyboard ⇒ Boolean
Optional.
-
#selective ⇒ Boolean
Optional.
Instance Attribute Details
#keyboard ⇒ Array
Array of button rows, each represented by an Array of Strings
13 14 15 |
# File 'lib/telegrammer/data_types/reply_keyboard_markup.rb', line 13 def keyboard @keyboard end |
#one_time_keyboard ⇒ Boolean
Optional. Requests clients to hide the keyboard as soon as it’s been used. Defaults to false.
13 14 15 |
# File 'lib/telegrammer/data_types/reply_keyboard_markup.rb', line 13 def one_time_keyboard @one_time_keyboard end |
#resize_keyboard ⇒ Boolean
Optional. Requests clients to resize the keyboard vertically for optimal fit. Defaults to false.
13 14 15 |
# File 'lib/telegrammer/data_types/reply_keyboard_markup.rb', line 13 def resize_keyboard @resize_keyboard end |
#selective ⇒ Boolean
Optional. Use this parameter if you want to hide keyboard for specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot’s message is a reply (has reply_to_message_id), sender of the original message.
13 14 15 |
# File 'lib/telegrammer/data_types/reply_keyboard_markup.rb', line 13 def selective @selective end |