public static class TdApi.AnswerInlineQuery extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
TdApi.InlineQueryResultsButton |
button
Button to be shown above inline query results; pass null if none.
|
int |
cacheTime
Allowed time to cache the results of the query, in seconds.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long |
inlineQueryId
Identifier of the inline query.
|
boolean |
isPersonal
Pass true if results may be cached and returned only for the user that sent the query.
|
java.lang.String |
nextOffset
Offset for the next inline query; pass an empty string if there are no more results.
|
TdApi.InputInlineQueryResult[] |
results
The results of the query.
|
| Constructor and Description |
|---|
AnswerInlineQuery()
Default 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,
java.lang.String nextOffset)
Creates a function, which sets the result of an inline query; for bots only.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long inlineQueryId
public boolean isPersonal
public TdApi.InlineQueryResultsButton button
public TdApi.InputInlineQueryResult[] results
public int cacheTime
public java.lang.String nextOffset
public static final int CONSTRUCTOR
public AnswerInlineQuery()
Returns Ok
public AnswerInlineQuery(long inlineQueryId,
boolean isPersonal,
TdApi.InlineQueryResultsButton button,
TdApi.InputInlineQueryResult[] results,
int cacheTime,
java.lang.String nextOffset)
Returns Ok
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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object