Obtaining api_id
In order to obtain an API id and develop your own application using the Telegram API you need to do the following:
- Sign up for Telegram using any application.
- Log in to your Telegram core: https://my.telegram.org.
- Go to ‘API development tools’ and fill out the form.
- You will get basic addresses as well as the api_id and api_hash parameters required for user authorization.
- For the moment each number can only have one api_id connected to it.
We will be sending important developer notifications to the phone number that you use in this process, so please use an up-to-date number connected to your active Telegram account.
使用手機登錄Telegram的任意客戶端(需要梯子)點擊auth

Log In
輸入手機號以后,點擊Next,剛才登錄的客戶端就會收到一個消息,填寫Confirmation code 點擊 Sign In。

Confirmation code

Sign In
最后會得到你想要的apidId和apiHash,界面名稱App configuration

App configuration