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
输入手机号以后,点击Next,刚才登录的客户端就会收到一个消息,填写Confirmation code 点击 Sign In。
最后会得到你想要的apidId和apiHash,界面名称App configuration