AnswerInlineQuery class final
Sets the result of an inline query; for bots only
Returns Ok.
- Inheritance
-
- Object
- TdFunction<
Ok> - AnswerInlineQuery
Constructors
-
AnswerInlineQuery({required int inlineQueryId, required bool isPersonal, InlineQueryResultsButton? button, required List<
InputInlineQueryResult> results, required int cacheTime, required String nextOffset}) -
Sets the result of an inline query; for bots only
const
Properties
-
Button to be shown above inline query results; pass null if none
final
- cacheTime → int
-
Allowed time to cache the results of the query, in seconds
final
- canBeCalledSynchronously → bool
-
Whether TDLib documents this request as callable through
td_execute.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- inlineQueryId → int
-
Identifier of the inline query
final
- isPersonal → 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
final
- nextOffset → String
-
Offset for the next inline query; pass an empty string if there are no more results
final
-
results
→ List<
InputInlineQueryResult> -
The results of the query
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{int? inlineQueryId, bool? isPersonal, InlineQueryResultsButton? button()?, List< InputInlineQueryResult> ? results, int? cacheTime, String? nextOffset}) → AnswerInlineQuery -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib function name, e.g.
getMe.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
[dynamic extra]) → Map< String, dynamic> -
Converts this request to TDLib JSON, tagged with
extraif given.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.