Package org.drinkless.tdlib
Class TdApi.InlineQueryResults
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.InlineQueryResults
-
- Enclosing class:
- TdApi
public static class TdApi.InlineQueryResults extends TdApi.Object
Represents the results of the inline query. Use sendInlineQueryResultMessage to send the result of the query.
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.longinlineQueryIdUnique identifier of the inline query.StringnextOffsetThe offset for the next request.TdApi.InlineQueryResult[]resultsResults of the query.StringswitchPmParameterParameter for the bot start message.StringswitchPmTextIf non-empty, this text must be shown on the button, which opens a private chat with the bot and sends the bot a start message with the switchPmParameter.
-
Constructor Summary
Constructors Constructor Description InlineQueryResults()Represents the results of the inline query.InlineQueryResults(long inlineQueryId, String nextOffset, TdApi.InlineQueryResult[] results, String switchPmText, String switchPmParameter)Represents the results of the inline query.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
inlineQueryId
public long inlineQueryId
Unique identifier of the inline query.
-
nextOffset
public String nextOffset
The offset for the next request. If empty, there are no more results.
-
results
public TdApi.InlineQueryResult[] results
Results of the query.
-
switchPmText
public String switchPmText
If non-empty, this text must be shown on the button, which opens a private chat with the bot and sends the bot a start message with the switchPmParameter.
-
switchPmParameter
public String switchPmParameter
Parameter for the bot start message.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InlineQueryResults
public InlineQueryResults()
Represents the results of the inline query. Use sendInlineQueryResultMessage to send the result of the query.
-
InlineQueryResults
public InlineQueryResults(long inlineQueryId, String nextOffset, TdApi.InlineQueryResult[] results, String switchPmText, String switchPmParameter)Represents the results of the inline query. Use sendInlineQueryResultMessage to send the result of the query.- Parameters:
inlineQueryId- Unique identifier of the inline query.nextOffset- The offset for the next request. If empty, there are no more results.results- Results of the query.switchPmText- If non-empty, this text must be shown on the button, which opens a private chat with the bot and sends the bot a start message with the switchPmParameter.switchPmParameter- Parameter for the bot start message.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-