public class AnswerInlineQuery extends BotApiMethod<Boolean>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELDOBJECT_MAPPER| Constructor and Description |
|---|
AnswerInlineQuery() |
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)
@Deprecated public Boolean getPersonal()
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.