Class: TD::Types::InlineKeyboardButton

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

Overview

Represents a single button in an inline 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.

Returns:

  • (TD::Types::String)

    the current value of text



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

def text
  @text
end

#typeTD::Types::InlineKeyboardButtonType

Type of the button.

Returns:



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

def type
  @type
end