What Telegram Bot API Can and Can't Do
Use this table when you need to check whether a bot feature requires Telegram API instead of Bot API. It was kindly provided by @vanutp.
| Feature | Bot API | Telegram API | Read more |
|---|---|---|---|
| Fetch messages | From updates only | From updates or by message IDs | Updates |
| Fetch users | From updates only | - From updates - By message IDs (if the bot “saw” the user) - By username (200 times a day) | Seen users |
| Send and receive files | ↓ 20 MB, ↑ 50 MB (without a local server) | Like regular users | Bot API docs: Local server |
| Fetch group members | No | Yes | |
| Get old updates | No | Yes | |
| Run multiple programs with the same bot | Only if other programs use Telegram API | Yes | Receiving updates multiple times |
For choosing a library, see the pages on Bot API vs Telegram API and API libraries..
