Skip to content

class Tourmaline::MenuButtonWebApp
inherits Reference #

Represents a menu button, which launches a Web App.

Included modules

JSON::Serializable

Constructors#

.new(type, text, web_app) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#text : String #

Text on the button

View source

#text=(text : String) #

Text on the button

View source

#type : String #

Type of the button, must be web_app

View source

#type=(type : String) #

Type of the button, must be web_app

View source

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

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

View source