public class SendMessage extends java.lang.Object implements TelegramMethod<TextMessage>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
| Constructor and Description |
|---|
SendMessage() |
| Modifier and Type | Method and Description |
|---|---|
SendMessage |
chat(Chat chat) |
SendMessage |
chat(java.lang.Long chatId) |
SendMessage |
chat(java.lang.String chatUsername) |
SendMessage |
disableNotification() |
SendMessage |
disableNotification(java.lang.Boolean disableNotification) |
SendMessage |
disableWebPagePreview() |
SendMessage |
disableWebPagePreview(java.lang.Boolean disableWebPagePreview) |
java.lang.String |
getName()
Returns the name of the method.
|
java.util.Map<java.lang.String,java.lang.Object> |
getParameters()
Return the parameters of the method.
|
java.lang.Class<? extends TextMessage> |
getReturnType()
Returns the return type of the method.
|
SendMessage |
replyMarkup(ReplyMarkup replyMarkup) |
SendMessage |
replyToMessage(java.lang.Long replyToMessageId) |
SendMessage |
replyToMessage(Message message) |
SendMessage |
text(java.lang.String text) |
SendMessage |
text(Text text) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFilespublic static final java.lang.String NAME
public SendMessage chat(java.lang.String chatUsername)
public SendMessage chat(java.lang.Long chatId)
public SendMessage chat(Chat chat)
public SendMessage disableNotification(java.lang.Boolean disableNotification)
public SendMessage disableNotification()
public SendMessage replyToMessage(Message message)
public SendMessage replyToMessage(java.lang.Long replyToMessageId)
public SendMessage replyMarkup(ReplyMarkup replyMarkup)
public SendMessage text(Text text)
public SendMessage text(java.lang.String text)
public SendMessage disableWebPagePreview(java.lang.Boolean disableWebPagePreview)
public SendMessage disableWebPagePreview()
public java.lang.String getName()
TelegramMethodgetName in interface TelegramMethod<TextMessage>public java.util.Map<java.lang.String,java.lang.Object> getParameters()
TelegramMethodgetParameters in interface TelegramMethod<TextMessage>public java.lang.Class<? extends TextMessage> getReturnType()
TelegramMethodgetReturnType in interface TelegramMethod<TextMessage>