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

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

.. autoapi-nested-parse::

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






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

.. py:function:: from_url(url: str, sticker_id: str, http: aiohttp.ClientSession) -> slidge.util.types.LegacyAttachment
   :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.


