- Enclosing class:
- TdApi
Sets the result of an inline query;
for bots only.
Returns
Ok
-
Field Summary
Modifier and TypeFieldDescriptionint
Allowed time to cache the results of the query, in seconds.static final int
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.The parameter for the bot start message.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 Summary
ConstructorDescriptionSets the result of an inline query; for bots only.AnswerInlineQuery
(long inlineQueryId, boolean isPersonal, TdApi.InputInlineQueryResult[] results, int cacheTime, String nextOffset, String switchPmText, String switchPmParameter) Sets the result of an inline query; for bots only.AnswerInlineQuery
(DataInput input) Sets the result of an inline query; for bots only. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Function
toString
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize
-
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. -
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. -
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. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
AnswerInlineQuery
public AnswerInlineQuery()Sets the result of an inline query; for bots only. ReturnsOk
-
AnswerInlineQuery
public AnswerInlineQuery(long inlineQueryId, boolean isPersonal, TdApi.InputInlineQueryResult[] results, int cacheTime, String nextOffset, String switchPmText, String switchPmParameter) Sets the result of an inline query; for bots only. ReturnsOk
- Parameters:
inlineQueryId
- long Identifier of the inline query.isPersonal
- boolean 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.results
- InputInlineQueryResult[] The results of the query.cacheTime
- int Allowed time to cache the results of the query, in seconds.nextOffset
- String Offset for the next inline query; pass an empty string if there are no more results.switchPmText
- String 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
- String The parameter for the bot start message.
-
AnswerInlineQuery
Sets the result of an inline query; for bots only. ReturnsOk
- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-