AnswerInlineQuery class

Inheritance

Constructors

AnswerInlineQuery({required int inlineQueryId, required bool isPersonal, required List<InputInlineQueryResult> results, required int cacheTime, required String nextOffset, required String switchPmText, required String switchPmParameter})
Sets the result of an inline query; for bots only
const

Properties

cacheTime int
cacheTime Allowed time to cache the results of the query, in seconds
final
hashCode int
The hash code for this object.
no setterinherited
inlineQueryId int
inlineQueryId Identifier of the inline query
final
isPersonal bool
isPersonal True, if the result of the query can be cached for the specified user
final
nextOffset String
nextOffset Offset for the next inline query; pass an empty string if there are no more results
final
results List<InputInlineQueryResult>
results The results of the query
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
switchPmParameter String
switchPmParameter The parameter for the bot start message
final
switchPmText String
switchPmText 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
final

Methods

copyWith({int? inlineQueryId, bool? isPersonal, List<InputInlineQueryResult>? results, int? cacheTime, String? nextOffset, String? switchPmText, String? switchPmParameter}) AnswerInlineQuery
getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String