Php 如何向电报发送使用电报api的请求
我有一个使用电报API的应用程序 我有一个Php 如何向电报发送使用电报api的请求,php,json,api,telegram,telegram-webhook,Php,Json,Api,Telegram,Telegram Webhook,我有一个使用电报API的应用程序 我有一个api\u id和一个api\u hash 现在我想注册一个用户到他的电报帐户(使用API) 我读书。 例如,它说要使用此代码: auth.sentCode#efed51d9 phone_registered:Bool phone_code_hash:string send_call_timeout:int is_password:Bool = auth.SentCode; auth.sentAppCode#e325edcf phone_register
api\u id
和一个api\u hash
现在我想注册一个用户到他的电报帐户(使用API)
我读书。
例如,它说要使用此代码:
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上有结果,请告诉我。bot api和用户api的区别在于通信类型,bot api使用Https协议,用户api使用传输控制协议(tcp)。 你应该使用客户端而不是浏览器,我建议你使用。 我为我的英语感到抱歉