FixTweet icon indicating copy to clipboard operation
FixTweet copied to clipboard

Telegram will not embed videos over a certain size

Open dangeredwolf opened this issue 1 year ago • 2 comments

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)

dangeredwolf avatar Aug 19 '22 05:08 dangeredwolf

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

Deer-Spangle avatar Aug 23 '22 21:08 Deer-Spangle

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

dangeredwolf avatar Aug 28 '22 08:08 dangeredwolf