public class SendMessage extends BotApiMethod<Message>
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH |
METHOD_FIELDOBJECT_MAPPER| Constructor and Description |
|---|
SendMessage() |
SendMessage(Long chatId,
String text) |
SendMessage(String chatId,
String text) |
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()
BotApiMethodgetMethod in class BotApiMethod<Message>public Message deserializeResponse(String answer) throws TelegramApiRequestException
PartialBotApiMethoddeserializeResponse in class PartialBotApiMethod<Message>answer - Json answer receivedTelegramApiRequestExceptionpublic void validate()
throws TelegramApiValidationException
ValidableTelegramApiValidationException - If any mandatory field is emptyCopyright © 2017. All rights reserved.