You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On 5 July 2019, Telegram released new animated stickers feature, which is using a vector based format generated using After Effect with a tailored extension.
Technical details
Through inspection of the extension and some sample files, Telegram is found to be using a subset/fork of Lottie (a.k.a. Bodymovin), which is led by Airbnb. The TGS format is a gzip-ed JSON file with a similar structure with Lottie, and an extra attribute "tgs": 1. By a simple look through, TGS is semmingly compatible with Lottie format.
Issues on supporting animated stickers
Telegram Bot API
As of when the issue is created, bot API is yet to support the new message type, this prevents ETM to send or receive any TGS animated stickers. We need to wait Telegram Bot API updates to process this kind of message.
[Update 31 July 2019]:
Telegram Bot API has released animated sticker support. [3]
python-telegram-bot (PTB) support of new bot API
Our upstream dependency, PTB need to update to support the latest bot API update which incorporates the new animated stickers format.
Update: Animated sticker support has arrived in PTB.
Lottie animation rendering
Despite being able to render in a wide range of platforms (Android, iOS, Web, React Native, and Windows), we did not find a way to encode Lottie animation into a more universally accepted format (e.g. MP4 [1, 2]). This prevent us to pass on TGS animations to other IM platforms as Telegram is seemingly the only IM platform that renders Lottie animations.
The text was updated successfully, but these errors were encountered:
according to the project page, the module tgs has been moved/renamed to lottie, and yesterday the author uploaded a broken version of tgs
, dont yet know if it was intended.
Background
On 5 July 2019, Telegram released new animated stickers feature, which is using a vector based format generated using After Effect with a tailored extension.
Technical details
Through inspection of the extension and some sample files, Telegram is found to be using a subset/fork of Lottie (a.k.a. Bodymovin), which is led by Airbnb. The TGS format is a gzip-ed JSON file with a similar structure with Lottie, and an extra attribute
"tgs": 1
. By a simple look through, TGS is semmingly compatible with Lottie format.Issues on supporting animated stickers
Telegram Bot APIAs of when the issue is created, bot API is yet to support the new message type, this prevents ETM to send or receive any TGS animated stickers. We need to wait Telegram Bot API updates to process this kind of message.[Update 31 July 2019]:
Telegram Bot API has released animated sticker support. [3]
python-telegram-bot
(PTB) support of new bot APIOur upstream dependency, PTB need to update to support the latest bot API update which incorporates the new animated stickers format.Update: Animated sticker support has arrived in PTB.
Lottie animation rendering
Despite being able to render in a wide range of platforms (Android, iOS, Web, React Native, and Windows), we did not find a way to encode Lottie animation into a more universally accepted format (e.g. MP4 [1, 2]). This prevent us to pass on TGS animations to other IM platforms as Telegram is seemingly the only IM platform that renders Lottie animations.
The text was updated successfully, but these errors were encountered: