class MenuButtonWebApp implements MenuButtonInterface

Represents a menu button, which launches a Web App.

Methods

__construct(string $type, string $text, WebAppInfo $web_app)

No description

string
getType()

Type of the button, must be web_app.

string
getText()

Text on the button.

getWebApp()

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.

Details

at line 15
__construct(string $type, string $text, WebAppInfo $web_app)

No description

Parameters

string $type
string $text
WebAppInfo $web_app

at line 25
string getType()

Type of the button, must be web_app.

Return Value

string

at line 33
string getText()

Text on the button.

Return Value

string

at line 41
WebAppInfo getWebApp()

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.

Return Value

WebAppInfo