tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

Message animation #2505

Closed Fra078 closed 1 year ago

Fra078 commented 1 year ago

Trying to build and test a UI displaying Message animation content I noticed that telegram converts .gif files to .MP4. so there is a real use case where a .gif file is received by tdlib?

levlam commented 1 year ago

Yes. If the GIF was uploaded a long time ago, or is very big (for example, bigger than 30 MB) and was uploaded from Telegram Desktop (or another app, which doesn't support client-side conversion to MPEG4), then the animation will contain a GIF file.