如何使用telegram-bot-python
添加callbackurl侦听器
我得到这个错误:
Address already in use
代码:
app = Bottle()
PORT = int(os.environ.get('PORT', '8443'))
@app.route('/auth/')
def my_listener():..
PORT = os.environ.get('PORT')
updater.start_webhook(listen="0.0.0.0",
port=int(PORT),
url_path=token,
webhook_url=f"https://{herokuname}.herokuapp.com/{token}")
updater.idle()
我试过这个代码,它成功了
相关问题 更多 >
编程相关推荐