I'm an app developer and noticed the following. When sharing animated gifs from other Android apps to Telegram, the animation is reduced to the first animation frame and thus is a still instead.
To reproduce:
download any GIF from giphy.com
open Google Files and go to the downloads folder
share the file with a Telegram contact
after sending the animation is made into a still of the first frame and all other frames are lost
Upon further investigation I found out that the behavior is observed when the mime type of the share Intent is set to "image/*" or "image/gif".
When instead the mime type is set to "application/binary" or "application/octet" it is working as intended and the animation is fine! So there seems to be an issue at Telegram's side for the Android app with the image mime type.
Setting my app's share Intent to application/binary for animated gifs is not an option as it would limit the number of available apps for the share intent (e.g. on my phone to 4 apps instead of more than a dozen).
Steps to reproduce
download any GIF from giphy.com
open Google Files and go to the downloads folder
share the file with a Telegram contact
after sending the animation is made into a still of the first frame and all other frames are lost
Device info
Telegram Android 8.8.6 (27252), Google Pixel 5, SDK 32
Log in here to report bugs or suggest features. Please enter your phone number in the international format and we will send a confirmation message to your account via Telegram.