Discourse doesn’t support Lottie files out of the box currently.
The feature proposal is Plugin for animated stickers
You can either wait for that or add support on your own by creating a theme component that adds support for the Lottie web player and put your Lottie files in the categories logo place.