AnswerInlineQuery class

Sets the result of an inline query; for bots only

Inheritance

Constructors

AnswerInlineQuery({String? extra, int? client_id, int64? inline_query_id, Bool? is_personal, vector<InputInlineQueryResult>? results, int32? cache_time, string? next_offset, string? switch_pm_text, string? switch_pm_parameter})
AnswerInlineQuery.fromMap(Map<String, dynamic> map)

Properties

cache_time int32?
Allowed time to cache the results of the query, in seconds
getter/setter pair
client_id int?
TDLib client id; maps to the field @client_id.
getter/setter pairinherited
extra String?
Matches requests with responses; maps to the field @extra.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
inline_query_id int64?
Identifier of the inline query
getter/setter pair
is_personal Bool?
Pass true if results may be cached and returned only for the user that sent the query. By default, results may be returned to any user who sends the same query
getter/setter pair
next_offset string?
Offset for the next inline query; pass an empty string if there are no more results
getter/setter pair
results vector<InputInlineQueryResult>?
The results of the query
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
switch_pm_parameter string?
The parameter for the bot start message
getter/setter pair
switch_pm_text string?
If non-empty, this text must be shown on the button that opens a private chat with the bot and sends a start message to the bot with the parameter switch_pm_parameter
getter/setter pair
tdReturnType String
The return type as String for this function. Currently not used.
no setteroverride
tdType String
JSON object type; maps to the field @type.
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({dynamic skipNulls = true}) String
Serialize a Td instance to a JSON string. If skipNulls is true the fields with null values are not serialized.
inherited
toMap({dynamic skipNulls = true}) Map<String, dynamic>
Create a Map from a Td instance.
override
toString({dynamic skipNulls = false}) String
A string representation of this object.
inherited

Operators

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