public class SendMessage extends BotApiMethod<Message>
Modifier and Type | Field and Description |
---|---|
static String |
PATH |
METHOD_FIELD
OBJECT_MAPPER
Constructor and Description |
---|
SendMessage() |
public static final String PATH
public String getChatId()
public SendMessage setChatId(String chatId)
public SendMessage setChatId(Long chatId)
public String getText()
public SendMessage setText(String text)
public Integer getReplyToMessageId()
public SendMessage setReplyToMessageId(Integer replyToMessageId)
public ReplyKeyboard getReplyMarkup()
public SendMessage setReplyMarkup(ReplyKeyboard replyMarkup)
public Boolean getDisableWebPagePreview()
public Boolean getDisableNotification()
public SendMessage disableWebPagePreview()
public SendMessage enableWebPagePreview()
public SendMessage enableNotification()
public SendMessage disableNotification()
public SendMessage setParseMode(String parseMode)
public SendMessage enableMarkdown(boolean enable)
public SendMessage enableHtml(boolean enable)
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.