Class TdApi.AnswerInlineQuery
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.Ok>
dev.voroby.springframework.telegram.client.TdApi.AnswerInlineQuery
- Enclosing class:
- TdApi
Sets the result of an inline query; for bots only.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionButton to be shown above inline query results; pass null if none.int
Allowed time to cache the results of the query, in seconds.static final int
Identifier uniquely determining type of the object.long
Identifier of the inline query.boolean
Pass true if results may be cached and returned only for the user that sent the query.Offset for the next inline query; pass an empty string if there are no more results.The results of the query. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which sets the result of an inline query; for bots only.AnswerInlineQuery
(long inlineQueryId, boolean isPersonal, TdApi.InlineQueryResultsButton button, TdApi.InputInlineQueryResult[] results, int cacheTime, String nextOffset) Creates a function, which sets the result of an inline query; for bots only. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
inlineQueryId
public long inlineQueryIdIdentifier of the inline query. -
isPersonal
public boolean isPersonalPass 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. -
button
Button to be shown above inline query results; pass null if none. -
results
The results of the query. -
cacheTime
public int cacheTimeAllowed time to cache the results of the query, in seconds. -
nextOffset
Offset for the next inline query; pass an empty string if there are no more results. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
AnswerInlineQuery
public AnswerInlineQuery()Default constructor for a function, which sets the result of an inline query; for bots only.Returns
Ok
-
AnswerInlineQuery
public AnswerInlineQuery(long inlineQueryId, boolean isPersonal, TdApi.InlineQueryResultsButton button, TdApi.InputInlineQueryResult[] results, int cacheTime, String nextOffset) Creates a function, which sets the result of an inline query; for bots only.Returns
Ok
- Parameters:
inlineQueryId
- Identifier of the inline query.isPersonal
- 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.button
- Button to be shown above inline query results; pass null if none.results
- The results of the query.cacheTime
- Allowed time to cache the results of the query, in seconds.nextOffset
- Offset for the next inline query; pass an empty string if there are no more results.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-