The limits, from Telegram's documentation
| What | Telegram's limit | Source |
|---|---|---|
| Bot API uploads | 50 MB per file | Telegram Bot API docs |
| Bot API downloads | 20 MB per file | Telegram Bot API docs |
| Bot API with a local server | Uploads up to 2,000 MB, downloads without a size limit | Telegram Bot API docs |
| File size, free account | 2 GB per file | Telegram FAQ |
| File size, Telegram Premium | 4 GB per file | Telegram Premium FAQ |
Last verified:
Bots and accounts use different APIs
Telegram offers two ways for software to work with it.
- The Bot API is for bots: automated accounts you create with @BotFather and control with a token over HTTPS. It's simple to use, and Telegram caps what goes through it: 50 MB per upload and 20 MB per download.
- The client API (MTProto) is what Telegram's own apps use. An app built on it signs in as a person's account, with a phone number and a login code, and gets that account's limits: 2 GB per file, or 4 GB with Premium.
That difference decides what a backup tool can store.
What fits in 50 MB, and what doesn't
Photos fit. A 12 MP iPhone photo is about 2.3 MB, and even a 24 MP camera RAW file is about 26.1 MB. A 48 MP Apple ProRAW photo, at about 75 MB, already doesn't.
Video mostly doesn't. 50 MB holds about 46 seconds of 1080p video at 30 fps and about 17 seconds of 4K at 30 fps. So a bot-based backup either skips most videos or fails on them.
The 20 MB download limit matters too: a bot may be able to store a file it can't fetch back for you to restore.
Why bot backups fail, and what to check
Bot-based backup tools usually fail in three ways:
- Large videos are skipped or error out because they're over 50 MB.
- Restores fail for files over 20 MB because the bot can't download them.
- Everything stops when the bot's host is down, if the tool runs on a server or a computer you have to keep on.
To tell which kind of tool you have, look at how it signs in. If it asks for a bot token from @BotFather, it uses the Bot API and its limits. If it signs in with your phone number and a code from Telegram, it uses the client API and your account's limits.
The local Bot API server option
Telegram lets developers run their own copy of the Bot API server. Its documentation says a bot using a local server can upload files up to 2,000 MB and download without a size limit. That's a real fix for developers, but it means running a server yourself, and it still doesn't give a bot a gallery or a way to back up a phone automatically.
Common problems
- "File too big" errors from a bot. The file is over 50 MB (upload) or 20 MB (download). Use a local Bot API server or a client-API app.
- A backup bot saved a video but can't restore it. Restoring needs a download, capped at 20 MB for bots.
- An app that signs in as you asks for your login code. That's normal for client-API apps; never share the code with anyone else, and check your active sessions in Telegram's settings.
Doing this with Limitless
Limitless uses the client API through TDLib, Telegram's own library, so it backs up photos and videos up to 2 GB each, as original files, into a private channel in your own account. Telegram also says it watches accounts that use third-party apps for abuse; Limitless only works with your own files, in your own account.