Class: TD::Types::ReplyMarkup::ShowKeyboard

Inherits:
TD::Types::ReplyMarkup show all
Defined in:
lib/tdlib/types/reply_markup/show_keyboard.rb

Overview

Contains a custom keyboard layout to quickly reply to bots.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#input_field_placeholderTD::Types::String

If non-empty, the placeholder to be shown in the input field when the keyboard is active; 0-64 characters.

Returns:

  • (TD::Types::String)

    the current value of input_field_placeholder



14
15
16
# File 'lib/tdlib/types/reply_markup/show_keyboard.rb', line 14

def input_field_placeholder
  @input_field_placeholder
end

#is_persistentBoolean

True, if the keyboard is supposed to always be shown when the ordinary keyboard is hidden.

Returns:

  • (Boolean)

    the current value of is_persistent



14
15
16
# File 'lib/tdlib/types/reply_markup/show_keyboard.rb', line 14

def is_persistent
  @is_persistent
end

#is_personalBoolean

True, if the keyboard must automatically be shown to the current user. For outgoing messages, specify true to show the keyboard only for the mentioned users and for the target user of a reply.

Returns:

  • (Boolean)

    the current value of is_personal



14
15
16
# File 'lib/tdlib/types/reply_markup/show_keyboard.rb', line 14

def is_personal
  @is_personal
end

#one_timeBoolean

True, if the application needs to hide the keyboard after use.

Returns:

  • (Boolean)

    the current value of one_time



14
15
16
# File 'lib/tdlib/types/reply_markup/show_keyboard.rb', line 14

def one_time
  @one_time
end

#resize_keyboardBoolean

True, if the application needs to resize the keyboard vertically.

Returns:

  • (Boolean)

    the current value of resize_keyboard



14
15
16
# File 'lib/tdlib/types/reply_markup/show_keyboard.rb', line 14

def resize_keyboard
  @resize_keyboard
end

#rowsArray<Array<TD::Types::KeyboardButton>>

A list of rows of bot keyboard buttons.

Returns:



14
15
16
# File 'lib/tdlib/types/reply_markup/show_keyboard.rb', line 14

def rows
  @rows
end