如何在 Telegram API 中获取我的应用程序 ID? [英] How Can I get my app id in Telegram API?

查看:98
本文介绍了如何在 Telegram API 中获取我的应用程序 ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 register.saveDeveloperInfo 方法从 Telegram API 获取我的应用程序 ID,但我找不到方法.

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.

我正在使用 de MTProto Java 库.

I'm using de MTProto Java library.

这就是我现在所做的:

  1. 我用 Java 实现了自己的 register.saveDeveloperInfo.
  2. 我使用更正参数调用该方法 (https://core.telegram.org/api/obtaining_api_id)
  3. 该方法返回一个真正的布尔值,但我没有收到带有我的 app_id 的短信.
  4. 当我进入我的电报网站应用部分时 (https://core.telegram.org/myapp) 显示您的应用尚未准备就绪"消息.
  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.

无论如何,我正在尝试使用官方客户端源代码中的app_id,但我无法发送或接收消息.

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?

推荐答案

您可以从 获取您的应用 api_id 和应用 api_hash您的 Telegram 应用页面.这是您在撰写本文时将使用的内容.如果系统要求您输入密码,请提供您将用于开发的手机号码,Telegram 会将密码发送给您.

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.

这篇关于如何在 Telegram API 中获取我的应用程序 ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆