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 SendVideoNote
duration(int duration)
java.lang.String
getDefaultContentType()
protected java.lang.String
getDefaultFileName()
protected java.lang.String
getFileParamName()
SendVideoNote
length(int length)
SendVideoNote
thumb(byte[] thumb)
Deprecated.Use thumbnail insteadSendVideoNote
thumb(java.io.File thumb)
Deprecated.Use thumbnail insteadSendVideoNote
thumbnail(byte[] thumbnail)
SendVideoNote
thumbnail(java.io.File thumbnail)
Methods inherited from class com.pengrad.telegrambot.request.AbstractMultipartRequest
contentType, fileName, getContentType, getFileName, isMultipart, thumbnail
Methods inherited from class com.pengrad.telegrambot.request.AbstractSendRequest
allowSendingWithoutReply, disableNotification, messageThreadId, protectContent, replyMarkup, replyToMessageId
Methods 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
Deprecated.Use thumbnail instead -
thumb
Deprecated.Use thumbnail instead -
thumbnail
-
thumbnail
-
getFileParamName
protected java.lang.String getFileParamName()- Specified by:
getFileParamName
in classAbstractMultipartRequest<SendVideoNote>
-
getDefaultContentType
public java.lang.String getDefaultContentType()- Specified by:
getDefaultContentType
in classAbstractMultipartRequest<SendVideoNote>
-
getDefaultFileName
protected java.lang.String getDefaultFileName()- Specified by:
getDefaultFileName
in classAbstractMultipartRequest<SendVideoNote>
-