Package org.drinkless.tdlib
Class TdApi.InputMessageAnimation
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.InputMessageContent
org.drinkless.tdlib.TdApi.InputMessageAnimation
- Enclosing class:
- TdApi
An animation message (GIF-style).
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe animation to be sent.Animation caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.static final intIdentifier uniquely determining type of the object.booleanTrue, if the animation preview must be covered by a spoiler animation; not supported in secret chats.booleanTrue, if the caption must be shown above the animation; otherwise, the caption must be shown below the animation; not supported in secret chats. -
Constructor Summary
ConstructorsConstructorDescriptionAn animation message (GIF-style).InputMessageAnimation(TdApi.InputAnimation animation, TdApi.FormattedText caption, boolean showCaptionAboveMedia, boolean hasSpoiler) An animation message (GIF-style). -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
animation
The animation to be sent. -
caption
Animation caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters. -
showCaptionAboveMedia
public boolean showCaptionAboveMediaTrue, if the caption must be shown above the animation; otherwise, the caption must be shown below the animation; not supported in secret chats. -
hasSpoiler
public boolean hasSpoilerTrue, if the animation preview must be covered by a spoiler animation; not supported in secret chats. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
InputMessageAnimation
public InputMessageAnimation()An animation message (GIF-style). -
InputMessageAnimation
public InputMessageAnimation(TdApi.InputAnimation animation, TdApi.FormattedText caption, boolean showCaptionAboveMedia, boolean hasSpoiler) An animation message (GIF-style).- Parameters:
animation- The animation to be sent.caption- Animation caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.showCaptionAboveMedia- True, if the caption must be shown above the animation; otherwise, the caption must be shown below the animation; not supported in secret chats.hasSpoiler- True, if the animation preview must be covered by a spoiler animation; not supported in secret chats.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-