class
Hamilton::Types::MenuButtonWebApp
- Hamilton::Types::MenuButtonWebApp
- Reference
- Object
Overview
Represents a menu button, which launches a Web App.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/menu_button.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#text : String
Text on the button.
-
#text=(text : String)
Text on the button.
-
#type : String
Type of the button, must be "web_app".
-
#type=(type : String)
Type of the button, must be "web_app".
-
#web_app : Hamilton::Types::WebAppInfo
Description of the Web App that will be launched when the user presses the button.
-
#web_app=(web_app : Hamilton::Types::WebAppInfo)
Description of the Web App that will be launched when the user presses the button.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
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. Alternatively, a t.me link to a Web App of the bot can be specified in the object instead of the Web App's URL, in which case the Web App will be opened as if the user pressed the link.
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. Alternatively, a t.me link to a Web App of the bot can be specified in the object instead of the Web App's URL, in which case the Web App will be opened as if the user pressed the link.