class

Tourmaline::MenuButtonWebApp

Inherits JSON::Serializable / Reference / Object

Represents a menu button, which launches a Web App.

Constructors

new(type : String, text : String, web_app : Tourmaline::WebAppInfo)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

text

Text on the button

Source
text=(text : String)

Text on the button

Source
type

Type of the button, must be web_app

Source
type=(type : String)

Type of the button, must be web_app

Source
web_app

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.

Source
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.

Source