Class: Telegrammer::DataTypes::ReplyKeyboardHide

Inherits:
Base
  • Object
show all
Defined in:
lib/telegrammer/data_types/reply_keyboard_hide.rb

Overview

Telegram ReplyKeyboardHide data type

See more at core.telegram.org/bots/api#replykeyboardhide

Instance Attribute Summary collapse

Instance Attribute Details

#hide_keyboardBoolean

Requests clients to hide the custom keyboard

Returns:

  • (Boolean)

    the current value of hide_keyboard



9
10
11
# File 'lib/telegrammer/data_types/reply_keyboard_hide.rb', line 9

def hide_keyboard
  @hide_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



9
10
11
# File 'lib/telegrammer/data_types/reply_keyboard_hide.rb', line 9

def selective
  @selective
end