我正在开发一个电报机器人,我想将webhook设置为我的域的URL。我已经在Telegram's guide之后生成了一个自签名证书。但是,我不能设置webhook。我已经搜索了之前的答案,找到了this one,但它对我来说不起作用。有没有人能解释一下如何上传SSL证书和设置webhook?
发布于 2021-08-29 13:55:15
设置Webhook
https://api.telegram.org/bot{my_bot_token}/setWebhook?url={url_to_send_updates_to}
例如:
https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/setWebhook?url=https://www.example.com
获取Webhook
https://api.telegram.org/bot{my_bot_token}/getWebhookInfo
https://stackoverflow.com/questions/42554548
复制相似问题