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