public class EditMessageCaption extends BotApiMethod<Serializable>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELDOBJECT_MAPPER| Constructor and Description |
|---|
EditMessageCaption() |
| Modifier and Type | Method and Description |
|---|---|
Serializable |
deserializeResponse(String answer)
Deserialize a json answer to the response type to a method
|
String |
getCaption() |
String |
getChatId() |
String |
getInlineMessageId() |
Integer |
getMessageId() |
String |
getMethod()
Getter for method path (that is the same as method name)
|
String |
getParseMode() |
InlineKeyboardMarkup |
getReplyMarkup() |
EditMessageCaption |
setCaption(String caption) |
EditMessageCaption |
setChatId(String chatId) |
EditMessageCaption |
setInlineMessageId(String inlineMessageId) |
EditMessageCaption |
setMessageId(Integer messageId) |
EditMessageCaption |
setParseMode(String parseMode) |
EditMessageCaption |
setReplyMarkup(InlineKeyboardMarkup replyMarkup) |
String |
toString() |
void |
validate()
Validates that mandatory fields are filled and optional objects
|
public static final String PATH
public String getChatId()
public EditMessageCaption setChatId(String chatId)
public Integer getMessageId()
public EditMessageCaption setMessageId(Integer messageId)
public String getInlineMessageId()
public EditMessageCaption setInlineMessageId(String inlineMessageId)
public String getCaption()
public EditMessageCaption setCaption(String caption)
public InlineKeyboardMarkup getReplyMarkup()
public EditMessageCaption setReplyMarkup(InlineKeyboardMarkup replyMarkup)
public String getParseMode()
public EditMessageCaption setParseMode(String parseMode)
public String getMethod()
BotApiMethodgetMethod in class BotApiMethod<Serializable>public Serializable deserializeResponse(String answer) throws TelegramApiRequestException
PartialBotApiMethoddeserializeResponse in class PartialBotApiMethod<Serializable>answer - Json answer receivedTelegramApiRequestExceptionpublic void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptyCopyright © 2018. All rights reserved.