There is an independent C++ library by Samsung called rlottie: https://github.com/Samsung/rlottie
Telegram uses it for animated stickers, Samsung itself uses it for icons on their smart watches
Do not under any circumstances use rlottie for your application if it consumes untrusted animations. It is not secure software and Samsung does not service security issues.
*I will add though if you absolutely need to, use Telegram's fork. They've at least fixed most of the known issues (with very great commit messages like "fix bug")
There is also the ThorVG project, which has better support for Lottie and is a more robust graphics library and was created by the same people. https://thorvg.github.io/