public class AnswerInlineQuery extends BotApiMethod<Boolean>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELDOBJECT_MAPPER| Constructor and Description |
|---|
AnswerInlineQuery() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
deserializeResponse(String answer)
Deserialize a json answer to the response type to a method
|
Integer |
getCacheTime() |
String |
getInlineQueryId() |
String |
getMethod()
Getter for method path (that is the same as method name)
|
String |
getNextOffset() |
List<InlineQueryResult> |
getResults() |
String |
getSwitchPmParameter() |
String |
getSwitchPmText() |
Boolean |
isPersonal() |
AnswerInlineQuery |
setCacheTime(Integer cacheTime) |
AnswerInlineQuery |
setInlineQueryId(String inlineQueryId) |
AnswerInlineQuery |
setNextOffset(String nextOffset) |
AnswerInlineQuery |
setPersonal(Boolean personal) |
AnswerInlineQuery |
setResults(InlineQueryResult... results) |
AnswerInlineQuery |
setResults(List<InlineQueryResult> results) |
AnswerInlineQuery |
setSwitchPmParameter(String switchPmParameter) |
AnswerInlineQuery |
setSwitchPmText(String switchPmText) |
String |
toString() |
void |
validate()
Validates that mandatory fields are filled and optional objects
|
public static final String PATH
public String getInlineQueryId()
public AnswerInlineQuery setInlineQueryId(String inlineQueryId)
public List<InlineQueryResult> getResults()
public AnswerInlineQuery setResults(List<InlineQueryResult> results)
public AnswerInlineQuery setResults(InlineQueryResult... results)
public Integer getCacheTime()
public AnswerInlineQuery setCacheTime(Integer cacheTime)
public Boolean isPersonal()
public AnswerInlineQuery setPersonal(Boolean personal)
public String getNextOffset()
public AnswerInlineQuery setNextOffset(String nextOffset)
public String getSwitchPmText()
public AnswerInlineQuery setSwitchPmText(String switchPmText)
public String getSwitchPmParameter()
public AnswerInlineQuery setSwitchPmParameter(String switchPmParameter)
public void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptypublic String getMethod()
BotApiMethodgetMethod in class BotApiMethod<Boolean>public Boolean deserializeResponse(String answer) throws TelegramApiRequestException
PartialBotApiMethoddeserializeResponse in class PartialBotApiMethod<Boolean>answer - Json answer receivedTelegramApiRequestExceptionCopyright © 2016. All rights reserved.