Class: TD::Types::BotMenuButton
- 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
-
#text ⇒ TD::Types::String
Text of the button.
-
#url ⇒ TD::Types::String
URL of a Web App to open when the button is pressed.
Method Summary
Methods inherited from Base
Instance Attribute Details
#text ⇒ TD::Types::String
Text of the button.
8 9 10 |
# File 'lib/tdlib/types/bot_menu_button.rb', line 8 def text @text end |
#url ⇒ TD::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.
8 9 10 |
# File 'lib/tdlib/types/bot_menu_button.rb', line 8 def url @url end |