class Tourmaline::MenuButtonWebApp

Overview

Represents a menu button, which launches a Web App.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(type : String, text : String, web_app : Tourmaline::WebAppInfo) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def text : String #

Text on the button


[View source]
def text=(text : String) #

Text on the button


[View source]
def type : String #

Type of the button, must be web_app


[View source]
def type=(type : String) #

Type of the button, must be web_app


[View source]
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.


[View source]
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.


[View source]