Skip to content

addSavedAnimation

Sahri Riza Umami edited this page Jun 22, 2018 · 3 revisions

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.

addSavedAnimation(animation, callback, data)
Field Type Description
animation InputFile 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.

Example

  • Manually adds new animation (with animation id 17) to the list of saved animations.

    addSavedAnimation(17)

    Response:

    {
      ["@type"] = "ok"
    }

Frequently Asked Questions
The Functions

Clone this wiki locally