Some GIFs files are converted to MPEG-4
Telegram Bot SupportSince long ago, every GIF in Telegram is encoded as MPEG-4. This mean that, when GIF files are sent using a bot, we try to convert them to MPEG-4.
GIF files must be sent using sendDocument where the file is specified with the document parameter (you can use the following options to send files: multipart/form-data, URL or file_id).
Once we receive the file, Telegram servers will try to convert it to MPEG-4, but since we value our server resources, there are limits on the file size we try to convert. At the moment, every GIF file under 10MB gets converted to MPEG-4 on our side. Note that you can also convert them on your side if you need to send a bigger one.