public class InlineQueryResponse extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
InlineQueryResponse.InlineQueryResponseBuilder |
| Constructor and Description |
|---|
InlineQueryResponse() |
| Modifier and Type | Method and Description |
|---|---|
static InlineQueryResponse.InlineQueryResponseBuilder |
builder()
This builder will allow you to progressively construct this object.
|
Integer |
getCacheTime()
Gets the cache time for this result in seconds
|
String |
getNextOffset()
Gets the offset key that has been set for if the user scrolls to the end of the list of results and requires more
|
List<InlineQueryResult> |
getResults()
Gets a list of all the result objects that will be sent with this response
|
String |
getSwitchPmParameter()
Gets the parameter for the start message sent to the bot when user presses the switch button, if set
Example: An inline bot that sends YouTube videos can ask the user to connect the bot to their YouTube account to
adapt search results accordingly.
|
String |
getSwitchPmText()
Gets the switch PM text.
|
boolean |
isPersonal()
Gets whether this result is personal.
|
public static InlineQueryResponse.InlineQueryResponseBuilder builder()
@NonNull public List<InlineQueryResult> getResults()
public Integer getCacheTime()
public boolean isPersonal()
public String getNextOffset()
public String getSwitchPmText()
getSwitchPmParameter()public String getSwitchPmParameter()
Copyright © 2017. All rights reserved.