public class ForwardMessage extends BotApiMethod<Message>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELDOBJECT_MAPPER| Constructor and Description |
|---|
ForwardMessage() |
ForwardMessage(Long chatId,
Long fromChatId,
Integer messageId) |
ForwardMessage(Long chatId,
String fromChatId,
Integer messageId) |
ForwardMessage(String chatId,
Long fromChatId,
Integer messageId) |
ForwardMessage(String chatId,
String fromChatId,
Integer messageId) |
| 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(Long fromChatId) |
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 ForwardMessage setFromChatId(Long fromChatId)
public Integer getMessageId()
public ForwardMessage setMessageId(Integer messageId)
public Boolean getDisableNotification()
public ForwardMessage enableNotification()
public ForwardMessage disableNotification()
public void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptypublic String getMethod()
BotApiMethodgetMethod in class BotApiMethod<Message>public Message deserializeResponse(String answer) throws TelegramApiRequestException
PartialBotApiMethoddeserializeResponse in class PartialBotApiMethod<Message>answer - Json answer receivedTelegramApiRequestExceptionCopyright © 2019. All rights reserved.