To connect custom clients, scripts, or automation tools to Telegram, you need the right credential for the interface you are building: an api_id and api_hash pair from my.telegram.org for MTProto (user/client API) access, or a Bot Token from @BotFather for the Bot API.
1. Choose the Right Credential First
Telegram splits developer access into two distinct paths that people often conflate:
| Credential | Where You Get It | Protocol / API | Best For |
|---|---|---|---|
api_id + api_hash |
my.telegram.org |
MTProto Client API | Custom clients, user accounts, scripts/libraries (
Comments |
Leave a Reply