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