ChosenInlineResult class

Represents a result of an inline query that was chosen by the user and sent to their chat partner.

Note: It is necessary to enable inline feedback via @Botfather in order to receive these objects in updates.

https://core.telegram.org/bots/api#choseninlineresult

Annotations
  • @JsonSerializable.new(includeIfNull: false)

Constructors

ChosenInlineResult({String? resultID, User? from, Location? location, String? inlineMessageID, String? query})
ChosenInlineResult.fromJson(Map<String, dynamic> json)
factory

Properties

from ↔ User?
The user that chose the result.
getter/setter pair
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.
getter/setter pair
location ↔ Location?
Optional. Sender location, only for bots that require user location
getter/setter pair
query ↔ String?
The query that was used to obtain the result.
getter/setter pair
resultID ↔ String?
The unique identifier for the result that was chosen.
getter/setter pair
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>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited