InlineQueryResultsButton class abstract
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
- Annotations
-
- @freezed
Constructors
- InlineQueryResultsButton.new({@JsonKey(name: 'text') required String text, @JsonKey(name: 'web_app') WebAppInfo? webApp, @JsonKey(name: 'start_parameter') String? startParameter})
-
Constructs an InlineQueryResultsButton
constfactory
-
InlineQueryResultsButton.fromJson(Map<
String, dynamic> json) -
Creates an InlineQueryResultsButton from a JSON object.
factory
Properties
-
copyWith
→ $InlineQueryResultsButtonCopyWith<
InlineQueryResultsButton> -
Create a copy of InlineQueryResultsButton
with the given fields replaced by the non-null parameter values.
no setterinherited
- 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.no setterinherited - text → String
-
Label text on the button
no setterinherited
- 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.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this InlineQueryResultsButton to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited