The upload that fails without an error
I wanted a video avatar for my own account. I recorded a short clip on an iPhone, uploaded it, and nothing happened. No error message, no preview. The avatar just stayed the same.
The clip was HEVC (H.265). iPhones record in that by default, and the avatar pipeline rejects it without telling you why. ffprobe showed the codec right away. Re-encoding to H.264 fixed it. This post covers that fix.
What the avatar format actually requires
The limits I built against are 800x800 pixels, H.264, no longer than 10 seconds, under 2 MB, and no audio track. Telegram doesn't put all of this in one place, so treat these as the values that worked in my testing, not a formal spec.
Check the input before you upload anything:
ffprobe -v error -select_streams v:0 -show_entries stream = codec_name,width,height,duration -of default = nw = 1 input.MOV
Enter fullscreen mode
Exit fullscreen mode
File size is the limit that bites. A 10 second clip at a sane bitrate fits in 2 MB.…