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
-
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
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, thumbMethods inherited from class com.pengrad.telegrambot.request.AbstractSendRequest
allowSendingWithoutReply, disableNotification, protectContent, replyMarkup, replyToMessageIdMethods inherited from class com.pengrad.telegrambot.request.BaseRequest
add, addAll, getMethod, getParameters, getResponseType, getTimeoutSeconds, toWebhookResponse
-
Constructor Details
-
SendVideoNote
public SendVideoNote(java.lang.Object chatId, java.lang.String videoNote) -
SendVideoNote
public SendVideoNote(java.lang.Object chatId, java.io.File videoNote) -
SendVideoNote
public SendVideoNote(java.lang.Object chatId, byte[] videoNote)
-
-
Method Details
-
duration
-
length
-
thumb
-
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>
-