Skip to content

Get your Telegram api_id and api_hash

TelePony signs each account in with your own Telegram app.
The keys take about five minutes to get at my.telegram.org.

Open my.telegram.org

Use the phone number of the account you'll connect.

Five steps

  1. Sign in to Telegram Core

    Open my.telegram.org and enter your Telegram phone number with the country code.
    The code arrives in the Telegram app, not by SMS.

    my.telegram.org sign-in: the phone number screen, then the screen for the confirmation code Telegram sent to the app. The number is blurred.
  2. Open Development Tools

    After signing in, open the Development Tools card.
    The first time, it shows the form for a new app.

    The Your Telegram Core page after signing in, with the Development Tools card on the left and Delete account and Log out on the right.
  3. Create the app

    Title: 5 or more characters. Short name: 5 to 32 letters or numbers.
    Any platform works; leave the URL empty.

    The Create new application form on my.telegram.org, filled in with the title MyApp, the short name myapp and Desktop as the platform.
  4. Copy api_id and api_hash

    Credentials shows api_id (a number) and api_hash (32 characters).
    The eye icon reveals the api_hash.

    The Credentials card on my.telegram.org: api_id on the left, api_hash hidden as secret on the right with eye and copy buttons. The api_id is blurred here.
  5. Paste them into TelePony

    In TelePony, press Connect account, paste both keys, press Next.
    Then sign in with your phone.

Before you start

One app per phone number
Telegram allows one app per number.
Development Tools shows its keys again any time.
Keep the api_hash private
Anyone holding it can use your app's quota.
TelePony keeps it encrypted.
If it only says ERROR
Turn off VPN and ad blockers, or switch browsers.
Names with “Telegram” or under 5 characters fail too.

Questions about the keys

Do I need a separate api_id for every account?

We recommend it: sign in to my.telegram.org with each account's own number and use those keys for that account.
Then every account has its own app instead of many accounts sharing one.

Can someone get into my account with the api_id and api_hash?

No. The keys only name the app.
Signing in still needs the code Telegram sends you, and your cloud password if you set one.

I lost my api_hash. What now?

Sign in to my.telegram.org again and open Development Tools.
The same api_id and api_hash are still there.

Is this the same as a bot token?

No. A bot token from @BotFather runs a bot, while api_id and api_hash sign in a real user account.
TelePony sends from user accounts.

Keys ready? Connect your first account.

Paste the two keys and sign in with your number.
The 7-day trial starts when the account connects.

Start free trial

7 days free. No card needed.