【发布时间】:2023-03-13 09:26:02
【问题描述】:
我有一个使用电报 API 的应用。
我有一个api_id 和一个api_hash。
现在我想将用户注册到他的电报帐户(使用 API)。
我读过this page。
它说例如auth.sendCode 使用此代码:
auth.sentCode#efed51d9 phone_registered:Bool phone_code_hash:string send_call_timeout:int is_password:Bool = auth.SentCode;
auth.sentAppCode#e325edcf phone_registered:Bool phone_code_hash:string send_call_timeout:int is_password:Bool = auth.SentCode;
---functions---
auth.sendCode#768d5f4d phone_number:string sms_type:int api_id:int api_hash:string lang_code:string = auth.SentCode;
我应该发送 URL 还是什么?
例如,在get me 函数的电报机器人 API 中,我们应该向这个 url 发送请求:
https://api.telegram.org/bot#key/getme
这个例子有问题吗?
如果在 github 或 here 上有结果,请告诉我。
【问题讨论】:
标签: php json api telegram telegram-webhook