MenuButtonWebApp
class MenuButtonWebApp implements MenuButtonInterface
Represents a menu button, which launches a Web App.
Methods
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
at line 25
string
getType()
Type of the button, must be web_app.
at line 33
string
getText()
Text on the button.
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.