public class EditMessageReplyMarkup extends BotApiMethod<Message>
Modifier and Type | Field and Description |
---|---|
static String |
PATH |
METHOD_FIELD
OBJECT_MAPPER
Constructor and Description |
---|
EditMessageReplyMarkup() |
Modifier and Type | Method and Description |
---|---|
Message |
deserializeResponse(String answer)
Deserialize a json answer to the response type to a method
|
String |
getChatId() |
String |
getInlineMessageId() |
Integer |
getMessageId() |
String |
getMethod()
Getter for method path (that is the same as method name)
|
InlineKeyboardMarkup |
getReplyMarkup() |
EditMessageReplyMarkup |
setChatId(Long chatId) |
EditMessageReplyMarkup |
setChatId(String chatId) |
EditMessageReplyMarkup |
setInlineMessageId(String inlineMessageId) |
EditMessageReplyMarkup |
setMessageId(Integer messageId) |
EditMessageReplyMarkup |
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 EditMessageReplyMarkup setChatId(String chatId)
public EditMessageReplyMarkup setChatId(Long chatId)
public Integer getMessageId()
public EditMessageReplyMarkup setMessageId(Integer messageId)
public String getInlineMessageId()
public EditMessageReplyMarkup setInlineMessageId(String inlineMessageId)
public InlineKeyboardMarkup getReplyMarkup()
public EditMessageReplyMarkup setReplyMarkup(InlineKeyboardMarkup replyMarkup)
public String getMethod()
BotApiMethod
getMethod
in class BotApiMethod<Message>
public Message deserializeResponse(String answer) throws TelegramApiRequestException
PartialBotApiMethod
deserializeResponse
in class PartialBotApiMethod<Message>
answer
- Json answer receivedTelegramApiRequestException
public void validate() throws TelegramApiValidationException
Validable
TelegramApiValidationException
- If any mandatory field is emptyCopyright © 2016. All rights reserved.