public class SendDocument extends java.lang.Object implements TelegramMethod<DocumentMessage>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
| Constructor and Description |
|---|
SendDocument() |
| Modifier and Type | Method and Description |
|---|---|
SendDocument |
caption(java.lang.String caption) |
SendDocument |
caption(Text caption) |
SendDocument |
chat(Chat chat) |
SendDocument |
chat(java.lang.Long chatId) |
SendDocument |
chat(java.lang.String chatUsername) |
SendDocument |
disableNotification() |
SendDocument |
disableNotification(java.lang.Boolean disableNotification) |
SendDocument |
document(java.lang.String file) |
SendDocument |
document(UploadFile newFile) |
java.util.Map<java.lang.String,UploadFile> |
getFiles()
Return the file parameters of the method.
|
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 DocumentMessage> |
getReturnType()
Returns the return type of the method.
|
SendDocument |
replyMarkup(ReplyMarkup replyMarkup) |
SendDocument |
replyToMessage(java.lang.Long replyToMessageId) |
SendDocument |
replyToMessage(Message message) |
public static final java.lang.String NAME
public SendDocument chat(java.lang.String chatUsername)
public SendDocument chat(java.lang.Long chatId)
public SendDocument chat(Chat chat)
public SendDocument disableNotification(java.lang.Boolean disableNotification)
public SendDocument disableNotification()
public SendDocument replyToMessage(Message message)
public SendDocument replyToMessage(java.lang.Long replyToMessageId)
public SendDocument replyMarkup(ReplyMarkup replyMarkup)
public SendDocument document(java.lang.String file)
public SendDocument document(UploadFile newFile)
public SendDocument caption(java.lang.String caption)
public SendDocument caption(Text caption)
public java.lang.String getName()
TelegramMethodgetName in interface TelegramMethod<DocumentMessage>public java.util.Map<java.lang.String,java.lang.Object> getParameters()
TelegramMethodgetParameters in interface TelegramMethod<DocumentMessage>public java.util.Map<java.lang.String,UploadFile> getFiles()
TelegramMethodgetFiles in interface TelegramMethod<DocumentMessage>public java.lang.Class<? extends DocumentMessage> getReturnType()
TelegramMethodgetReturnType in interface TelegramMethod<DocumentMessage>