class Tourmaline::MenuButtonWebApp
- Tourmaline::MenuButtonWebApp
- Reference
- Object
Overview
Represents a menu button, which launches a Web App.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
Instance Method Summary
-
#text : String
Text on the button
-
#text=(text : String)
Text on the button
-
#type : String
Type of the button, must be web_app
-
#type=(type : String)
Type of the button, must be web_app
-
#web_app : Tourmaline::WebAppInfo
Description of the Web App that will be launched when the user presses the button.
-
#web_app=(web_app : Tourmaline::WebAppInfo)
Description of the Web App that will be launched when the user presses the button.
Constructor Detail
Instance Method Detail
def web_app : Tourmaline::WebAppInfo
#
Description of the Web App that will be launched when the user presses the button. The Web App will be able to send an arbitrary message on behalf of the user using the method answerWebAppQuery.
def web_app=(web_app : Tourmaline::WebAppInfo)
#
Description of the Web App that will be launched when the user presses the button. The Web App will be able to send an arbitrary message on behalf of the user using the method answerWebAppQuery.