class
Hamilton::Types::InlineQueryResultsButton
- Hamilton::Types::InlineQueryResultsButton
- Reference
- Object
Overview
This object represents a button to be shown above inline query results. You must use exactly one of the optional fields.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/inline_query_results_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.
-
#start_parameter : String | Nil
Deep-linking parameter for the /start message sent to the bot when a user presses the button.
-
#start_parameter=(start_parameter : String | Nil)
Deep-linking parameter for the /start message sent to the bot when a user presses the button.
-
#text : String
Label text on the button.
-
#text=(text : String)
Label text on the button.
-
#web_app : Hamilton::Types::WebAppInfo | Nil
Description of the Web App that will be launched when the user presses the button.
-
#web_app=(web_app : Hamilton::Types::WebAppInfo | Nil)
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
Deep-linking parameter for the /start message sent to the bot when a user presses the button. 1-64 characters, only A-Z, a-z, 0-9, _ and - are allowed.
Deep-linking parameter for the /start message sent to the bot when a user presses the button. 1-64 characters, only A-Z, a-z, 0-9, _ and - are allowed.
Description of the Web App that will be launched when the user presses the button. The Web App will be able to switch back to the inline mode using the method switchInlineQuery inside the Web App.
Description of the Web App that will be launched when the user presses the button. The Web App will be able to switch back to the inline mode using the method switchInlineQuery inside the Web App.