我有一个使用电报 API 的应用程序。
我有一个api_id
和一个api_hash
。
现在我想将用户注册到他的电报帐户(使用 API)。
我读了这个页面。例如,它说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或这里有结果,请告诉我。