public static class TdApi.AnswerInlineQuery extends TdApi.Function
Returns Ok
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
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
True, if the result of the query can be cached for the specified user.
|
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.
|
java.lang.String |
switchPmParameter
The parameter for the bot start message.
|
java.lang.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 switchPmParameter.
|
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.InputInlineQueryResult[] results,
int cacheTime,
java.lang.String nextOffset,
java.lang.String switchPmText,
java.lang.String switchPmParameter)
Creates a function, which sets the result of an inline query; for bots only.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public long inlineQueryId
public boolean isPersonal
public TdApi.InputInlineQueryResult[] results
public int cacheTime
public java.lang.String nextOffset
public java.lang.String switchPmText
public java.lang.String switchPmParameter
public static final int CONSTRUCTOR
public AnswerInlineQuery()
Returns Ok
public AnswerInlineQuery(long inlineQueryId, boolean isPersonal, TdApi.InputInlineQueryResult[] results, int cacheTime, java.lang.String nextOffset, java.lang.String switchPmText, java.lang.String switchPmParameter)
Returns Ok
inlineQueryId
- Identifier of the inline query.isPersonal
- True, if the result of the query can be cached for the specified user.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.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 switchPmParameter.switchPmParameter
- The parameter for the bot start message.public int getConstructor()
getConstructor
in class TdApi.Function