Class TdApi.AddSavedAnimation
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.Function<TdApi.Ok>
dev.voroby.springframework.telegram.client.TdApi.AddSavedAnimation
- Enclosing class:
- TdApi
Manually adds a new animation to the list of saved animations. The new animation is added to the beginning of the list. If the animation was already in the list, it is removed first. Only non-secret video animations with MIME type "video/mp4" can be added to the list.
Returns Ok
-
Field Summary
Modifier and TypeFieldDescriptionThe animation file to be added.static final int
Identifier uniquely determining type of the object. -
Constructor Summary
ConstructorDescriptionDefault constructor for a function, which manually adds a new animation to the list of saved animations.AddSavedAnimation
(TdApi.InputFile animation) Creates a function, which manually adds a new animation to the list of saved animations. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Function
toString
-
Field Details
-
animation
The animation file to be added. Only animations known to the server (i.e., successfully sent via a message) can be added to the list. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
AddSavedAnimation
public AddSavedAnimation()Default constructor for a function, which manually adds a new animation to the list of saved animations. The new animation is added to the beginning of the list. If the animation was already in the list, it is removed first. Only non-secret video animations with MIME type "video/mp4" can be added to the list.Returns
Ok
-
AddSavedAnimation
Creates a function, which manually adds a new animation to the list of saved animations. The new animation is added to the beginning of the list. If the animation was already in the list, it is removed first. Only non-secret video animations with MIME type "video/mp4" can be added to the list.Returns
Ok
- Parameters:
animation
- The animation file to be added. Only animations known to the server (i.e., successfully sent via a message) can be added to the list.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-