public static class InlineQueryResponse.InlineQueryResponseBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
InlineQueryResponse |
build()
Builds the InlineQueryResultVoice object
|
InlineQueryResponse.InlineQueryResponseBuilder |
cacheTime(Integer cacheTime)
*Optional*
Sets the cache time for this response in seconds.
|
InlineQueryResponse.InlineQueryResponseBuilder |
isPersonal(boolean isPersonal)
*Optional*
Sets whether the response is personal to the user or not.
|
InlineQueryResponse.InlineQueryResponseBuilder |
nextOffset(String nextOffset)
*Optional*
Sets the offset that a client should send in the next query with the same text to receive more results.
|
InlineQueryResponse.InlineQueryResponseBuilder |
results(InlineQueryResult... results)
*Required*
Sets the InlineQueryResult's for the response
|
InlineQueryResponse.InlineQueryResponseBuilder |
results(List<InlineQueryResult> results)
*Required*
Sets the list of InlineQueryResult's for the response
|
InlineQueryResponse.InlineQueryResponseBuilder |
switchPMParameter(String switchPmParameter)
*Optional*
Sets the switch pm parameter for the response.
|
InlineQueryResponse.InlineQueryResponseBuilder |
switchPMText(String switchPmText)
*Optional*
Sets the switch pm text for the response.
|
public InlineQueryResponse.InlineQueryResponseBuilder results(List<InlineQueryResult> results)
results - The list of InlineQueryResult objectspublic InlineQueryResponse.InlineQueryResponseBuilder results(InlineQueryResult... results)
results - A collection of InlineQueryResult objectspublic InlineQueryResponse.InlineQueryResponseBuilder cacheTime(Integer cacheTime)
cacheTime - The cache time for the response in secondspublic InlineQueryResponse.InlineQueryResponseBuilder isPersonal(boolean isPersonal)
isPersonal - Sets whether the response is personal or notpublic InlineQueryResponse.InlineQueryResponseBuilder nextOffset(String nextOffset)
nextOffset - The next offset for the resultspublic InlineQueryResponse.InlineQueryResponseBuilder switchPMText(String switchPmText)
switchPmText - The switch pm textpublic InlineQueryResponse.InlineQueryResponseBuilder switchPMParameter(String switchPmParameter)
switchPmParameter - The switch pm parameterpublic InlineQueryResponse build()
Copyright © 2017. All rights reserved.