Class: Telegram::Bot::Types::ReplyKeyboardMarkup

Inherits:
Base
  • Object
show all
Defined in:
sig/telegram/bot/types/reply_keyboard_markup.rbs

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Methods included from Compactable

#to_compact_hash, #to_json

Methods included from PatternMatching

#deconstruct_keys

Instance Attribute Details

#input_field_placeholderString? (readonly)

Returns the value of attribute input_field_placeholder.

Returns:

  • (String, nil)


12
13
14
# File 'sig/telegram/bot/types/reply_keyboard_markup.rbs', line 12

def input_field_placeholder
  @input_field_placeholder
end

#is_persistentBoolean (readonly)

Returns the value of attribute is_persistent.

Returns:

  • (Boolean)


9
10
11
# File 'sig/telegram/bot/types/reply_keyboard_markup.rbs', line 9

def is_persistent
  @is_persistent
end

#keyboardArray[Array[KeyboardButton]] (readonly)

Returns the value of attribute keyboard.

Returns:



8
9
10
# File 'sig/telegram/bot/types/reply_keyboard_markup.rbs', line 8

def keyboard
  @keyboard
end

#one_time_keyboardBoolean (readonly)

Returns the value of attribute one_time_keyboard.

Returns:

  • (Boolean)


11
12
13
# File 'sig/telegram/bot/types/reply_keyboard_markup.rbs', line 11

def one_time_keyboard
  @one_time_keyboard
end

#resize_keyboardBoolean (readonly)

Returns the value of attribute resize_keyboard.

Returns:

  • (Boolean)


10
11
12
# File 'sig/telegram/bot/types/reply_keyboard_markup.rbs', line 10

def resize_keyboard
  @resize_keyboard
end

#selectiveBoolean? (readonly)

Returns the value of attribute selective.

Returns:

  • (Boolean, nil)


13
14
15
# File 'sig/telegram/bot/types/reply_keyboard_markup.rbs', line 13

def selective
  @selective
end

Class Method Details

.new(keyboard:, is_persistent:, resize_keyboard:, one_time_keyboard:, input_field_placeholder:, selective:) ⇒ instance .new(attributes) ⇒ instance

Overloads:

  • .new(keyboard:, is_persistent:, resize_keyboard:, one_time_keyboard:, input_field_placeholder:, selective:) ⇒ instance

    Parameters:

    • keyboard: (Array[Array[KeyboardButton]])
    • is_persistent: (Boolean)
    • resize_keyboard: (Boolean)
    • one_time_keyboard: (Boolean)
    • input_field_placeholder: (String)
    • selective: (Boolean)

    Returns:

    • (instance)
  • .new(attributes) ⇒ instance

    Parameters:

    • attributes (Hash[Symbol | String, untyped])

    Returns:

    • (instance)


6
7
# File 'sig/telegram/bot/types/reply_keyboard_markup.rbs', line 6

def self.new: (keyboard: Array[Array[KeyboardButton]], ?is_persistent: bool, ?resize_keyboard: bool, ?one_time_keyboard: bool, ?input_field_placeholder: String, ?selective: bool) -> instance
| (?Hash[Symbol | String, untyped] attributes) -> instance