How Can I get my app id in Telegram API?

筅森魡賤 提交于 2020-01-01 05:21:05

问题


I am trying to get my app id from Telegram API by using the method register.saveDeveloperInfo, but I cannot find the way to do it.

I'm using de MTProto Java library.

This is what I had done by now:

  1. I made my own register.saveDeveloperInfo implemmentation in Java.
  2. I call the method with the corrects params (https://core.telegram.org/api/obtaining_api_id)
  3. The method returns a true boolean but I have not received the sms with my app_id.
  4. When I enter in my app section of the telegram web (https://core.telegram.org/myapp) shows the "Your app is not ready yet" message.

Anyway, I'm trying to use the app_id from the source code of the official client but I can't send or receive message.

Does anyone know how to do it or where can I find more information?


回答1:


You can get your app api_id and app api_hash from your Telegram app page. This is what you'll be using as of this writing. If you are asked a password, provide the mobile phone number you'll be using to develop and Telegram will send you the password.




回答2:


If you are asked a password and Telegram didn't send it to you, try to provide the mobile phone number without "+".



来源:https://stackoverflow.com/questions/21878812/how-can-i-get-my-app-id-in-telegram-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!