我有一个使用电报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;我应该发送网址还是什么?例如,在用于get me功能的电报bot API中,我们应该向这个url发送请求:
https://api.telegram.org/bot#key/getme这个例子有问题吗?
如果在、github、或上有结果,请告诉我。
发布于 2017-08-27 12:34:37
bot api与用户api的区别在于通信的类型,bot api使用Https协议,用户api使用传输控制协议 (tcp)。您应该使用客户端而不是浏览器,我建议您使用MadelineProto。我很抱歉我的英语
https://stackoverflow.com/questions/45904237
复制相似问题