codingteam / emulsion

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

Telegram content proxy: inline images and other supported data types #165

Closed ForNeVeR closed 2 years ago

ForNeVeR commented 2 years ago

Right now, everything gets downloaded as attachment, but we may do better. Consider either removing the Content-Disposition header, or making it inline.

Seemingly this could be done by removing the file name from the FileStream, but need experimentation. Maybe only remove that header if the MIME type is not application/octet-stream.