public class DeleteMessage extends BotApiMethod<Boolean>
Modifier and Type | Field and Description |
---|---|
static String |
PATH |
METHOD_FIELD
OBJECT_MAPPER
Constructor and Description |
---|
DeleteMessage() |
DeleteMessage(Long chatId,
Integer messageId) |
DeleteMessage(String chatId,
Integer messageId) |
Modifier and Type | Method and Description |
---|---|
Boolean |
deserializeResponse(String answer)
Deserialize a json answer to the response type to a method
|
String |
getChatId() |
Integer |
getMessageId() |
String |
getMethod()
Getter for method path (that is the same as method name)
|
DeleteMessage |
setChatId(String chatId) |
DeleteMessage |
setMessageId(Integer messageId) |
String |
toString() |
void |
validate()
Validates that mandatory fields are filled and optional objects
|
public static final String PATH
public String getChatId()
public DeleteMessage setChatId(String chatId)
public Integer getMessageId()
public DeleteMessage setMessageId(Integer messageId)
public String getMethod()
BotApiMethod
getMethod
in class BotApiMethod<Boolean>
public Boolean deserializeResponse(String answer) throws TelegramApiRequestException
PartialBotApiMethod
deserializeResponse
in class PartialBotApiMethod<Boolean>
answer
- Json answer receivedTelegramApiRequestException
public void validate() throws TelegramApiValidationException
Validable
TelegramApiValidationException
- If any mandatory field is emptyCopyright © 2017. All rights reserved.