From 4f2a8d0e01f4c49d3fbcc509e5b8ba67962b9df0 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Wed, 2 Dec 2020 16:15:21 +0100 Subject: [PATCH] Explain how the call to lottie works and how to debug it --- Settings.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Settings.md b/Settings.md index e7642fe..b44b694 100644 --- a/Settings.md +++ b/Settings.md @@ -1178,6 +1178,16 @@ This requires the external dependency `lottie`, which can be installed like this `pip install lottie cairosvg` https://github.com/42wim/matterbridge/issues/874 +Note that if you insist on using an ancient Python version like 3.5, the pip installation is slightly more complicated. Matterbridge expects `lottie_convert.py` to be in your `$PATH`; if that's not already the case, try putting this into your `~/.profile`: +``` +PATH=$HOME/.local/bin:$PATH +export PATH +``` + +If you encounter bugs with this, try to extract the Telegram sticker file and run lottie on it like this: +`lottie_convert.py --input-format lottie file_1234_tgs.webp myoutput.webp` +This might give you additional information about what's going on. + Setting: OPTIONAL, RELOADABLE \ Format: string \ Values: `"png"` (still-image), `"webp"` (animated webp) \