Package com.pengrad.telegrambot.request
Class SendVideoNote
- java.lang.Object
-
- com.pengrad.telegrambot.request.BaseRequest<T,SendResponse>
-
- com.pengrad.telegrambot.request.AbstractSendRequest<T>
-
- com.pengrad.telegrambot.request.AbstractMultipartRequest<SendVideoNote>
-
- com.pengrad.telegrambot.request.SendVideoNote
-
public class SendVideoNote extends AbstractMultipartRequest<SendVideoNote>
Stas Parshin 24 May 2017
-
-
Field Summary
-
Fields inherited from class com.pengrad.telegrambot.request.BaseRequest
thisAsT
-
-
Constructor Summary
Constructors Constructor Description SendVideoNote(java.lang.Object chatId, byte[] videoNote)SendVideoNote(java.lang.Object chatId, java.io.File videoNote)SendVideoNote(java.lang.Object chatId, java.lang.String videoNote)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SendVideoNoteduration(int duration)java.lang.StringgetContentType()protected java.lang.StringgetDefaultFileName()protected java.lang.StringgetFileParamName()SendVideoNotelength(int length)SendVideoNotethumb(byte[] thumb)SendVideoNotethumb(java.io.File thumb)-
Methods inherited from class com.pengrad.telegrambot.request.AbstractMultipartRequest
fileName, getFileName, isMultipart, thumb
-
Methods inherited from class com.pengrad.telegrambot.request.AbstractSendRequest
disableNotification, replyMarkup, replyToMessageId
-
Methods inherited from class com.pengrad.telegrambot.request.BaseRequest
add, addAll, getMethod, getParameters, getResponseType, getTimeoutSeconds, serialize, toWebhookResponse
-
-
-
-
Method Detail
-
duration
public SendVideoNote duration(int duration)
-
length
public SendVideoNote length(int length)
-
thumb
public SendVideoNote thumb(byte[] thumb)
-
thumb
public SendVideoNote thumb(java.io.File thumb)
-
getFileParamName
protected java.lang.String getFileParamName()
- Specified by:
getFileParamNamein classAbstractMultipartRequest<SendVideoNote>
-
getContentType
public java.lang.String getContentType()
- Specified by:
getContentTypein classAbstractMultipartRequest<SendVideoNote>
-
getDefaultFileName
protected java.lang.String getDefaultFileName()
- Specified by:
getDefaultFileNamein classAbstractMultipartRequest<SendVideoNote>
-
-