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.StringgetContentType()java.lang.StringgetDefaultFileName()protected java.lang.StringgetFileParamName()SendAnimationheight(int height)SendAnimationparseMode(ParseMode parseMode)SendAnimationthumb(byte[] thumb)SendAnimationthumb(java.io.File thumb)SendAnimationwidth(int width)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
-
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
-
thumb
-
caption
-
parseMode
-
captionEntities
-
getFileParamName
protected java.lang.String getFileParamName()- Specified by:
getFileParamNamein classAbstractMultipartRequest<SendAnimation>
-
getDefaultFileName
public java.lang.String getDefaultFileName()- Specified by:
getDefaultFileNamein classAbstractMultipartRequest<SendAnimation>
-
getContentType
public java.lang.String getContentType()- Specified by:
getContentTypein classAbstractMultipartRequest<SendAnimation>
-