telegram-bot-api icon indicating copy to clipboard operation
telegram-bot-api copied to clipboard

GIF compression

Open Sarisan opened this issue 1 year ago • 3 comments

InlineQueryResultGif and sendDocument both compress GIF passed with URL. Can this annoying behavior be disabled any way?

Sarisan avatar Oct 06 '24 22:10 Sarisan

No. All animations are intended to be played in MP4 format, which can provide the same or better quality with much smaller file size.

levlam avatar Oct 07 '24 06:10 levlam

No. All animations are intended to be played in MP4 format, which can provide the same or better quality with much smaller file size.

Provide the compression option then where user can pick the quality like in android client. Or turn this compression off since either of clients degrades quality during GIF to MP4 conversion.

Sarisan avatar Oct 07 '24 07:10 Sarisan

This is not related to upload by URL and is better to be requested at https://suggestions.telegram.org on per-client basis. All mobile apps convert uploaded GIF to MP4 even before it is sent to Telegram servers.

levlam avatar Oct 07 '24 08:10 levlam