Telegram

7 reasons your Telegram bot won't post to your channel

By André Lug

#7

A webhook blocks getUpdates

If a webhook is set, getUpdates fails. Call deleteWebhook first, or read updates through the webhook.

#6

The video isn't MP4

Telegram apps only play MPEG4 inline. Other containers can arrive as a file, not a playable video.

#5

The file is too big for a URL

When you pass a link, Telegram downloads it, and the cap is 20 MB for non-photo files. Multipart uploads go up to 50 MB.

Quick test
#4

The caption is too long

Captions stop at 1,024 characters. Text messages go up to 4,096, so send long text as its own message.

#3

You hit flood control

Keep it to about one message per second in a chat and 20 per minute in a group. On a 429, wait retry_after seconds.

#2

The chat ID is wrong

Private channels have no username. Use the numeric ID, like -1001234567890, minus sign included.

#1

The bot isn't an admin

Add it to the channel as an administrator with 'Post messages' on. A plain member can't post.

NEXT

Check in this order

Admin right, chat ID, file size, then limits. And bots can't schedule posts: the timing is up to your own worker.

Read the full guide

More stories

See all stories