简体   繁体   English

如何在 Telegram API 中获取我的应用程序 ID?

[英]How Can I get my app id in Telegram API?

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.我正在尝试使用register.saveDeveloperInfo方法从 Telegram API 获取我的应用程序 ID,但我找不到执行此操作的方法。

I'm using de MTProto Java library.我正在使用 de MTProto Java 库。

This is what I had done by now:这是我现在所做的:

  1. I made my own register.saveDeveloperInfo implemmentation in Java.我在 Java 中实现了自己的register.saveDeveloperInfo实现。
  2. I call the method with the corrects params ( https://core.telegram.org/api/obtaining_api_id )我用正确的参数调用方法( 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.该方法返回一个真实的 boolean 但我没有收到带有我的 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.当我进入电报 web ( https://core.telegram.org/myapp ) 的我的应用程序部分时,显示“您的应用程序尚未准备好”消息。

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.无论如何,我正在尝试使用官方客户端源代码中的app_id,但我无法发送或接收消息。

Does anyone know how to do it or where can I find more information?有谁知道该怎么做或我在哪里可以找到更多信息?

You can get your app api_id and app api_hash from your Telegram app page . 您可以从Telegram应用页面获取应用api_id和app api_hash。 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. 如果您被问到密码,请提供您将用于开发的手机号码,Telegram将向您发送密码。

如果系统要求您输入密码并且Telegram没有将密码发送给您,请尝试提供没有“+”的手机号码。

Try disabling any anti-spam software or VPN.尝试禁用任何反垃圾邮件软件或 VPN。 Disabling ABP for https://my.telegram.org/apps helped mehttps://my.telegram.org/apps禁用 ABP 帮助了我

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM