Skip to content

class Tourmaline::WebAppData
inherits Reference #

Describes data sent from a Web App to the bot.

Included modules

JSON::Serializable

Constructors#

.new(data, button_text) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#button_text : String #

Text of the web_app keyboard button from which the Web App was opened. Be aware that a bad client can send arbitrary data in this field.

View source

#button_text=(button_text : String) #

Text of the web_app keyboard button from which the Web App was opened. Be aware that a bad client can send arbitrary data in this field.

View source

#data : String #

The data. Be aware that a bad client can send arbitrary data in this field.

View source

#data=(data : String) #

The data. Be aware that a bad client can send arbitrary data in this field.

View source