InlineQueryResultsButton class
This object represents a button to be shown above inline query results. You must use exactly one of the optional fields.
Since: Bot API 6.7
Constructors
- InlineQueryResultsButton({required String text, WebAppInfo? webApp, String? startParameter})
-
Constructs an InlineQueryResultsButton
const
-
InlineQueryResultsButton.fromJson(Map<
String, dynamic> json) -
Creates an InlineQueryResultsButton from a JSON object.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startParameter → String?
-
Optional. 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.final - text → String
-
Label text on the button
final
- webApp → WebAppInfo?
-
Optional. 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 web_app_switch_inline_query inside the Web App.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this object to a map in JSON format.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited