public class ForwardMessage extends BotApiMethod<Message>
Modifier and Type | Field and Description |
---|---|
static String |
PATH |
METHOD_FIELD
OBJECT_MAPPER
Constructor and Description |
---|
ForwardMessage() |
Modifier and Type | Method and Description |
---|---|
Message |
deserializeResponse(String answer)
Deserialize a json answer to the response type to a method
|
ForwardMessage |
disableNotification() |
ForwardMessage |
enableNotification() |
String |
getChatId() |
Boolean |
getDisableNotification() |
String |
getFromChatId() |
Integer |
getMessageId() |
String |
getMethod()
Getter for method path (that is the same as method name)
|
ForwardMessage |
setChatId(Long chatId) |
ForwardMessage |
setChatId(String chatId) |
ForwardMessage |
setFromChatId(String fromChatId) |
ForwardMessage |
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 ForwardMessage setChatId(String chatId)
public ForwardMessage setChatId(Long chatId)
public String getFromChatId()
public ForwardMessage setFromChatId(String fromChatId)
public Integer getMessageId()
public ForwardMessage setMessageId(Integer messageId)
public Boolean getDisableNotification()
public ForwardMessage enableNotification()
public ForwardMessage disableNotification()
public void validate() throws TelegramApiValidationException
Validable
TelegramApiValidationException
- If any mandatory field is emptypublic 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
Copyright © 2016. All rights reserved.