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
-
Fields inherited from class com.pengrad.telegrambot.request.BaseRequest
thisAsT
-
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SendAnimationcaption(java.lang.String caption)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, 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 SendAnimation duration(int duration)
-
width
public SendAnimation width(int width)
-
height
public SendAnimation height(int height)
-
thumb
public SendAnimation thumb(byte[] thumb)
-
thumb
public SendAnimation thumb(java.io.File thumb)
-
caption
public SendAnimation caption(java.lang.String caption)
-
parseMode
public SendAnimation parseMode(ParseMode parseMode)
-
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>
-
-