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

#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



10
11
12
# File 'lib/tdlib/types/reply_markup/show_keyboard.rb', line 10

def is_personal
  @is_personal
end

#one_timeBoolean

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

Returns:

  • (Boolean)

    the current value of one_time



10
11
12
# File 'lib/tdlib/types/reply_markup/show_keyboard.rb', line 10

def one_time
  @one_time
end

#resize_keyboardBoolean

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

Returns:

  • (Boolean)

    the current value of resize_keyboard



10
11
12
# File 'lib/tdlib/types/reply_markup/show_keyboard.rb', line 10

def resize_keyboard
  @resize_keyboard
end

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

A list of rows of bot keyboard buttons.

Returns:



10
11
12
# File 'lib/tdlib/types/reply_markup/show_keyboard.rb', line 10

def rows
  @rows
end