【问题标题】:Telegram webhook method requests for ssl3ssl3 的 Telegram webhook 方法请求
【发布时间】:2017-07-27 09:16:09
【问题描述】:

我正在尝试使用 webhook 配置我的 Telegram 机器人。使用 Let's Encrypt 服务我收到了证书,并且在尝试打开我的网页浏览器时显示“受信任”。之后我尝试激活 Webhook,请求由 Postman 完成。我从 Teleram 服务器收到了这个response。但是当我使用 getWebhookInfo 方法时,服务器会向我发送一条关于 error 的消息。但我没有使用 SSL3。在 nginx 配置中,我发现只是 TLSv1 TLSv1.1 TLSv1.2;

附:我是网络编程新手,如果我的问题看起来很愚蠢,请见谅。

【问题讨论】:

    标签: ssl nginx telegram telegram-bot


    【解决方案1】:

    尝试从http://cloudflare.com/ 为您的网站设置 ssl 我认为您的 ssl 不够安全。

    您可以通过以下链接设置 webhook:

    https://api.telegram.org/bot<your_token>/setwebhook?url=https://addres_that_is_your_bot_code
    

    示例:

    https://api.telegram.org/bot382531162:AAGYSJSToS5r87ov7GecNwpCRIB515D3_uA/setwebhook?url=https://example.com/telegram/index.php
    

    KingRoot Apk

    【讨论】:

    • 感谢您的回复! SSL 很好,我在自己对 Telegram 服务器的请求中发现了错误。我做了这个request。这是致命错误,无论如何感谢您的帮助!
    • 这是正确的方法来制作request,因为在默认配置中 Telegram 使用端口 443
    猜你喜欢
    • 2021-12-21
    • 2016-10-30
    • 1970-01-01
    • 1970-01-01
    • 2018-03-31
    • 2019-08-30
    • 2017-10-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多