Class: TD::Types::BotMenuButton

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

Overview

Describes a button to be shown instead of bot commands menu button.

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



8
9
10
# File 'lib/tdlib/types/bot_menu_button.rb', line 8

def text
  @text
end

#urlTD::Types::String

URL of a Web App to open when the button is pressed. If the link is of the type internalLinkTypeWebApp, then it must be processed accordingly. Otherwise, the link must be passed to openWebApp.

Returns:

  • (TD::Types::String)

    the current value of url



8
9
10
# File 'lib/tdlib/types/bot_menu_button.rb', line 8

def url
  @url
end