Package com.pengrad.telegrambot.request
Class SendAnimation
java.lang.Object
com.pengrad.telegrambot.request.BaseRequest<T,SendResponse>
com.pengrad.telegrambot.request.AbstractSendRequest<T>
com.pengrad.telegrambot.request.AbstractMultipartRequest<SendAnimation>
com.pengrad.telegrambot.request.SendAnimation
public class SendAnimation extends AbstractMultipartRequest<SendAnimation>
Stas Parshin
28 July 2018
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SendAnimation(java.lang.Object chatId, byte[] animation)SendAnimation(java.lang.Object chatId, java.io.File animation)SendAnimation(java.lang.Object chatId, java.lang.String animation) -
Method Summary
Modifier and Type Method Description SendAnimationcaption(java.lang.String caption)SendAnimationcaptionEntities(MessageEntity... entities)SendAnimationduration(int duration)java.lang.StringgetDefaultContentType()java.lang.StringgetDefaultFileName()protected java.lang.StringgetFileParamName()SendAnimationhasSpoiler(boolean has_spoiler)SendAnimationheight(int height)SendAnimationparseMode(ParseMode parseMode)SendAnimationshowCaptionAboveMedia(java.lang.Boolean showCaptionAboveMedia)SendAnimationthumb(byte[] thumb)Deprecated.Use thumbnail insteadSendAnimationthumb(java.io.File thumb)Deprecated.Use thumbnail insteadSendAnimationthumbnail(byte[] thumbnail)SendAnimationthumbnail(java.io.File thumbnail)SendAnimationwidth(int width)Methods inherited from class com.pengrad.telegrambot.request.AbstractMultipartRequest
contentType, fileName, getContentType, getFileName, isMultipart, thumbnailMethods inherited from class com.pengrad.telegrambot.request.AbstractSendRequest
allowSendingWithoutReply, businessConnectionId, disableNotification, messageEffectId, messageThreadId, protectContent, replyMarkup, replyParameters, replyToMessageIdMethods inherited from class com.pengrad.telegrambot.request.BaseRequest
add, addAll, getMethod, getParameters, getResponseType, getTimeoutSeconds, toWebhookResponse
-
Constructor Details
-
SendAnimation
public SendAnimation(java.lang.Object chatId, java.lang.String animation) -
SendAnimation
public SendAnimation(java.lang.Object chatId, java.io.File animation) -
SendAnimation
public SendAnimation(java.lang.Object chatId, byte[] animation)
-
-
Method Details
-
duration
-
width
-
height
-
thumb
Deprecated.Use thumbnail instead -
thumb
Deprecated.Use thumbnail instead -
thumbnail
-
thumbnail
-
caption
-
parseMode
-
captionEntities
-
hasSpoiler
-
showCaptionAboveMedia
-
getFileParamName
protected java.lang.String getFileParamName()- Specified by:
getFileParamNamein classAbstractMultipartRequest<SendAnimation>
-
getDefaultFileName
public java.lang.String getDefaultFileName()- Specified by:
getDefaultFileNamein classAbstractMultipartRequest<SendAnimation>
-
getDefaultContentType
public java.lang.String getDefaultContentType()- Specified by:
getDefaultContentTypein classAbstractMultipartRequest<SendAnimation>
-