ChosenInlineResult class abstract
Represents a result of an inline query that was chosen by the user and sent to their chat partner.
- Implemented types
- Annotations
-
- @freezed
Constructors
- ChosenInlineResult.new({@JsonKey(name: 'result_id') required String resultId, @JsonKey(name: 'from') required User from, @JsonKey(name: 'location') Location? location, @JsonKey(name: 'inline_message_id') String? inlineMessageId, @JsonKey(name: 'query') required String query})
-
Creates a new ChosenInlineResult object.
constfactory
-
ChosenInlineResult.fromJson(Map<
String, dynamic> json) -
Creates a new ChosenInlineResult object from json.
factory
Properties
-
copyWith
→ $ChosenInlineResultCopyWith<
ChosenInlineResult> -
Create a copy of ChosenInlineResult
with the given fields replaced by the non-null parameter values.
no setterinherited
- from → User
-
The user that chose the result
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- inlineMessageId → String?
-
Optional. Identifier of the sent inline message. Available only if there
is an inline keyboard attached to the message. Will be also received in
callback queries and can be used to edit the message.
no setterinherited
- location → Location?
-
Optional. Sender location, only for bots that require user location
no setterinherited
- query → String
-
The query that was used to obtain the result
no setterinherited
- resultId → String
-
The unique identifier for the result that was chosen
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this ChosenInlineResult to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited