public class SendVoice extends AbstractMultipartRequest<SendVoice>
| Constructor and Description |
|---|
SendVoice(java.lang.Object chatId,
byte[] voice) |
SendVoice(java.lang.Object chatId,
java.io.File voice) |
SendVoice(java.lang.Object chatId,
java.lang.String voice) |
| Modifier and Type | Method and Description |
|---|---|
SendVoice |
duration(int duration) |
java.lang.String |
getContentType() |
java.lang.String |
getFileName() |
protected java.lang.String |
getFileParamName() |
isMultipartdisableNotification, replyMarkup, replyToMessageIdadd, getMethod, getParameters, getResponseTypepublic SendVoice(java.lang.Object chatId,
java.lang.String voice)
public SendVoice(java.lang.Object chatId,
java.io.File voice)
public SendVoice(java.lang.Object chatId,
byte[] voice)
public SendVoice duration(int duration)
protected java.lang.String getFileParamName()
getFileParamName in class AbstractMultipartRequest<SendVoice>public java.lang.String getFileName()
getFileName in class AbstractMultipartRequest<SendVoice>public java.lang.String getContentType()
getContentType in class AbstractMultipartRequest<SendVoice>