Class: Telegrammer::DataTypes::ReplyKeyboardMarkup

Inherits:
Base
  • Object
show all
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

Instance Attribute Details

#keyboardArray

Array of button rows, each represented by an Array of Strings

Returns:

  • (Array)

    the current value of keyboard



13
14
15
# File 'lib/telegrammer/data_types/reply_keyboard_markup.rb', line 13

def keyboard
  @keyboard
end

#one_time_keyboardBoolean

Optional. Requests clients to hide the keyboard as soon as it’s been used. Defaults to false.

Returns:

  • (Boolean)

    the current value of one_time_keyboard



13
14
15
# File 'lib/telegrammer/data_types/reply_keyboard_markup.rb', line 13

def one_time_keyboard
  @one_time_keyboard
end

#resize_keyboardBoolean

Optional. Requests clients to resize the keyboard vertically for optimal fit. Defaults to false.

Returns:

  • (Boolean)

    the current value of resize_keyboard



13
14
15
# File 'lib/telegrammer/data_types/reply_keyboard_markup.rb', line 13

def resize_keyboard
  @resize_keyboard
end

#selectiveBoolean

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.

Returns:

  • (Boolean)

    the current value of selective



13
14
15
# File 'lib/telegrammer/data_types/reply_keyboard_markup.rb', line 13

def selective
  @selective
end