FixTweet / FxTwitter

Fix broken Twitter/X embeds! Use multiple images, videos, polls, translations and more on Discord, Telegram and others
https://fxtwitter.com
MIT License
2.62k stars 77 forks source link

Telegram will not embed videos over a certain size #39

Open dangeredwolf opened 2 years ago

dangeredwolf commented 2 years ago

Telegram will not embed videos over a certain size. I'm not entirely sure what size limit is, but videos pushing 2 minutes are most likely to trip it.

Example media: https://fxtwitter.com/Vo_Memes/status/1559905291147296769

This is not an issue unique to FixTweet, it also affects all Twitter embed fixers using the TwitFix codebase as well (vxTwitter, Twxtter, Twitter64)

Deer-Spangle commented 2 years ago

Ah yeah, the embedded video size limit is about 10MB I think. I know the size limit for gifs is 8MB. It can vary by client, but iirc, 10MB is the lowest of the video embed limits? Some clients support up to 12 or 16MB, I think.

Apologies for the vagueness, I only wrote up the results of testing gif limits, which are 8MB and 1280px: https://github.com/Deer-Spangle/FA-search-bot/blob/master/experiments/telegram_image_size.md

dangeredwolf commented 2 years ago

Oh yeah, I forgot to follow up that the limit appears to be 20 MB. The 10 MB limit is for bots.

cc @Deer-Spangle