By André Lug
If a webhook is set, getUpdates fails. Call deleteWebhook first, or read updates through the webhook.
Telegram apps only play MPEG4 inline. Other containers can arrive as a file, not a playable video.
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.
Captions stop at 1,024 characters. Text messages go up to 4,096, so send long text as its own message.
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.
Private channels have no username. Use the numeric ID, like -1001234567890, minus sign included.
Add it to the channel as an administrator with 'Post messages' on. A plain member can't post.
Admin right, chat ID, file size, then limits. And bots can't schedule posts: the timing is up to your own worker.