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 SendAnimation
caption(java.lang.String caption)
SendAnimation
captionEntities(MessageEntity... entities)
SendAnimation
duration(int duration)
java.lang.String
getDefaultContentType()
java.lang.String
getDefaultFileName()
protected java.lang.String
getFileParamName()
SendAnimation
hasSpoiler(boolean has_spoiler)
SendAnimation
height(int height)
SendAnimation
parseMode(ParseMode parseMode)
SendAnimation
thumb(byte[] thumb)
Deprecated.Use thumbnail insteadSendAnimation
thumb(java.io.File thumb)
Deprecated.Use thumbnail insteadSendAnimation
thumbnail(byte[] thumbnail)
SendAnimation
thumbnail(java.io.File thumbnail)
SendAnimation
width(int width)
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
-
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
-
getFileParamName
protected java.lang.String getFileParamName()- Specified by:
getFileParamName
in classAbstractMultipartRequest<SendAnimation>
-
getDefaultFileName
public java.lang.String getDefaultFileName()- Specified by:
getDefaultFileName
in classAbstractMultipartRequest<SendAnimation>
-
getDefaultContentType
public java.lang.String getDefaultContentType()- Specified by:
getDefaultContentType
in classAbstractMultipartRequest<SendAnimation>
-