codingteam / emulsion

XMPP ↔ Telegram bridge
MIT License
33 stars 3 forks source link

Possibly incorrect content type specification for animations. #169

Closed ttldtor closed 1 year ago

ttldtor commented 1 year ago

Found a problem with browsers Opera (91.0.4516.20, Windows 10 64-bit), Chrome (106.0.5249.103, 64 bit). They incorrectly display animations from Telegram. Show a gray square. изображение

The content type returned by the server is image/jpeg. That being said, Firefox successfully plays it as webm. Here is an example:

https://fornever.me/emulsion/ct/content/bKSLSDN

ForNeVeR commented 1 year ago

It is likely that we are incorrectly assuming image/jpeg content type for stickers: https://github.com/codingteam/emulsion/blob/739786463de8c34ee3a256285c74aa80eb86c2d8/Emulsion.Telegram/LinkGenerator.fs#L82