如何使用“ Python Telegram bot”在Pythonanywhere上设置Webhook图书馆
谁能帮我吗?我正在将现成的机器人部署到pythonanywhere,当地我的网络怪人正在工作,但是在pyany的地方,我在getwebhookinfo上遇到了404个错误。 我在这里发布了我的代码和屏幕截图: https://github.com/github.com/python-telegram bot/ python-telegram-bot/讨论/2952
can anyone help me? I am deploying my ready bot to pythonanywhere, locally my webhook was working but on pyanywhere I am getting 404 error on getWebhookInfo.
I posted my codes and screenshots Here:
https://github.com/python-telegram-bot/python-telegram-bot/discussions/2952
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它对我有用:
为了确定持久性,请参阅此示例: https://docs.python-telegram-bot.org/en/v20.0a4/examples.persistentConversationbot.html
我为修复“线程安全”创建了一个“构建”函数。 (应用程序只能运行一个循环)
“运行”功能仅用于帮助我使用应用程序开始 /更新 /停止。 (您可以移动异步视图)。
It works for me:
For undestanding the persistence see this example: https://docs.python-telegram-bot.org/en/v20.0a4/examples.persistentconversationbot.html
I create a "build" function for fix "Thread Safe". (Application can be run only one loop)
The "run" function is only for help me with application start / update / stop. (You can be move for the async view).