All Implemented Interfaces:
Validable
Version:
4.0.0
Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound).
On success, the sent Message is returned.
Bots can currently send animation files of up to 50 MB in size, this limit may be changed in the future.
Author:
Ruben Bermudez
Nested Class Summary
Nested Classes
Constructor Summary
Constructors
Method Summary
All Methods Instance Methods Concrete Methods
Deserialize a json answer to the response type to a method
void
void
Getter for method path (that is the same as method name)
void
void
Validates that mandatory fields are filled and optional objects
Methods inherited from class Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
Field Details
PATH
public static final String PATH
See Also:
ANIMATION_FIELD
public static final String ANIMATION_FIELD
See Also:
DURATION_FIELD
public static final String DURATION_FIELD
See Also:
WIDTH_FIELD
public static final String WIDTH_FIELD
See Also:
HEIGHT_FIELD
public static final String HEIGHT_FIELD
See Also:
CAPTION_FIELD
public static final String CAPTION_FIELD
See Also:
PARSE_MODE_FIELD
public static final String PARSE_MODE_FIELD
See Also:
THUMBNAIL_FIELD
public static final String THUMBNAIL_FIELD
See Also:
CAPTION_ENTITIES_FIELD
public static final String CAPTION_ENTITIES_FIELD
See Also:
HAS_SPOILER_FIELD
public static final String HAS_SPOILER_FIELD
See Also:
Constructor Details
SendAnimation
public SendAnimation ()
Method Details
setChatId
public void setChatId (@NonNull
@NonNull Long chatId)
enableNotification
public void enableNotification ()
disableNotification
public void disableNotification ()