Class: TD::Types::ReplyMarkup::ShowKeyboard
- Inherits:
-
TD::Types::ReplyMarkup
- Object
- Dry::Struct
- Base
- TD::Types::ReplyMarkup
- TD::Types::ReplyMarkup::ShowKeyboard
- 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
-
#input_field_placeholder ⇒ TD::Types::String
If non-empty, the placeholder to be shown in the input field when the keyboard is active; 0-64 characters.
-
#is_persistent ⇒ Boolean
True, if the keyboard is supposed to always be shown when the ordinary keyboard is hidden.
-
#is_personal ⇒ Boolean
True, if the keyboard must automatically be shown to the current user.
-
#one_time ⇒ Boolean
True, if the application needs to hide the keyboard after use.
-
#resize_keyboard ⇒ Boolean
True, if the application needs to resize the keyboard vertically.
-
#rows ⇒ Array<Array<TD::Types::KeyboardButton>>
A list of rows of bot keyboard buttons.
Method Summary
Methods inherited from Base
Instance Attribute Details
#input_field_placeholder ⇒ TD::Types::String
If non-empty, the placeholder to be shown in the input field when the keyboard is active; 0-64 characters.
14 15 16 |
# File 'lib/tdlib/types/reply_markup/show_keyboard.rb', line 14 def input_field_placeholder @input_field_placeholder end |
#is_persistent ⇒ Boolean
True, if the keyboard is supposed to always be shown when the ordinary keyboard is hidden.
14 15 16 |
# File 'lib/tdlib/types/reply_markup/show_keyboard.rb', line 14 def is_persistent @is_persistent end |
#is_personal ⇒ Boolean
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.
14 15 16 |
# File 'lib/tdlib/types/reply_markup/show_keyboard.rb', line 14 def is_personal @is_personal end |
#one_time ⇒ Boolean
True, if the application needs to hide the keyboard after use.
14 15 16 |
# File 'lib/tdlib/types/reply_markup/show_keyboard.rb', line 14 def one_time @one_time end |
#resize_keyboard ⇒ Boolean
True, if the application needs to resize the keyboard vertically.
14 15 16 |
# File 'lib/tdlib/types/reply_markup/show_keyboard.rb', line 14 def resize_keyboard @resize_keyboard end |
#rows ⇒ Array<Array<TD::Types::KeyboardButton>>
A list of rows of bot keyboard buttons.
14 15 16 |
# File 'lib/tdlib/types/reply_markup/show_keyboard.rb', line 14 def rows @rows end |