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

#textTD::Types::String

Text of the button.



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

def text
  @text
end

#typeTD::Types::KeyboardButtonType

Type of the button.



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

def type
  @type
end