slidge.util.lottie
==================

.. py:module:: slidge.util.lottie

.. autoapi-nested-parse::

   This module implements vector animated stickers in the lottie format to webp images.




Functions
---------

.. autoapisummary::

   slidge.util.lottie.from_url


Module Contents
---------------

.. py:function:: from_url(url, sticker_id, http)
   :async:


   Get a webp attachment from a URL.

   :param url: URL where the lottie sticker can be downloaded.
   :param sticker_id: A unique identifier for this sticker.
   :param http: The aiohttp.ClientSession used to download the sticker.

   :return: A `LegacyAttachment` with the sticker in the webp format if
       `config.CONVERT_STICKERS == True`, in the original lottie format
       otherwise.


