Class: TD::Types::KeyboardButton

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/keyboard_button.rb

Overview

Represents a single button in a bot keyboard.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#textString

Text of the button.

Returns:

  • (String)

    the current value of text



6
7
8
# File 'lib/tdlib/types/keyboard_button.rb', line 6

def text
  @text
end

#typeTD::Types::KeyboardButtonType

Type of the button.

Returns:



6
7
8
# File 'lib/tdlib/types/keyboard_button.rb', line 6

def type
  @type
end