Module tdlight.api

Class TdApi.AddSavedAnimation

Enclosing class:
TdApi

public static final class TdApi.AddSavedAnimation extends TdApi.Function<TdApi.Ok>
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 Details

    • animation

      public TdApi.InputFile 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 CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • AddSavedAnimation

      public AddSavedAnimation()
      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

      public AddSavedAnimation(TdApi.InputFile animation)
      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.

      Returns Ok

    • AddSavedAnimation

      public AddSavedAnimation(DataInput input) throws IOException
      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:
      input - Serialized input
      Throws:
      IOException - the deserialization failed
  • 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 class TdApi.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object