gpt4 book ai didi

Telegram webhook : Is ssl mandatory?

转载 作者:行者123 更新时间:2023-12-04 03:20:45 31 4
gpt4 key购买 nike

我想知道 SSL 证书和以 https:// 开头的 URL 是否对于 Telegram 机器人的 webhook 是必需的?正如它在 https://core.telegram.org/bots/api#setwebhook 中注意到的那样似乎有必要,但我不确定。

最佳答案

作为 Telegram Bot documentation说:

所有对 Telegram Bot API 的查询都必须通过 HTTPS 提供,并且需要以这种形式呈现。

  • You need a valid SSL certificate for webhooks to work.
  • To use a self-signed certificate, you need to upload your public key certificate - using the certificate parameter in setWebhook. Please upload as InputFile, - sending a String will not work.
  • Ports currently supported for Webhooks: 443, 80, 88, 8443.
  • Wildcard certificates may not be supported.
  • Redirects are not supported.
  • CN must exactly match your domain.

设置 SSL 并不难,也有完全免费的方法(比如免费的有效 SSL 证书或自签名方法)

关于 Telegram webhook : Is ssl mandatory?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38459555/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com