【发布时间】:2018-09-25 13:20:45
【问题描述】:
我不明白为什么 Telegram API 说 webhook.php 不存在,即使我可以使用浏览器访问它。
电报 API:
{"ok":false,"error_code":404,"description":"未找到"}
链接:
【问题讨论】:
标签: php telegram webhooks telegram-bot
我不明白为什么 Telegram API 说 webhook.php 不存在,即使我可以使用浏览器访问它。
电报 API:
{"ok":false,"error_code":404,"description":"未找到"}
链接:
【问题讨论】:
标签: php telegram webhooks telegram-bot
您似乎错误地授权了您的机器人/应用程序,请参阅https://core.telegram.org/bots/api#authorizing-your-bot
【讨论】:
请改用此 URL 格式:
https://api.telegram.org/bot56014xxxx:AAxxxxxxxxxxxxxxxxxxxxxxx/setWebhook?url=https://hexah.net/Telegram/webhook.php
【讨论】:
最后的问题是需要对 URL 进行编码
(感谢在 Telegram Bot 频道上帮助我的人)
但我仍然不明白为什么我的旧链接在没有编码的情况下也能正常工作...
【讨论】: