I'm encountering an error when trying to integrate my Rasa chatbot with Telegram using ngrok. Here’s the error message I’m receiving:
RuntimeError: Event loop is closed
The Rasa server starts successfully on :5005, and it’s running without errors:
root - Starting Rasa server on :5005
root - Rasa server is up and running.
credentials.yml:
telegram:
access_token : "....83451:AxxxxxxxxxxxxRYR_GIE4"
verify: "@bot_username"
webhook_url: "https://<forwarding_link_ngrok>/webhooks/telegram/webhook"
rasa:
url: "http://localhost:5002/api"
endpoints.yml:
action_endpoint:
url: "http://localhost:5055/webhook"
I am able to interact with my Rasa bot successfully through the VS Code terminal using the Rasa shell, but when I try to use it on Telegram, the bot does not respond.
Environment: Python 3.10.0 Rasa version: 3.6.21 Aiogram version: 2.15 Telegram Bot API version: 21.10 Operating System: Windows
Any guidance or suggestions on how to fix this would be greatly appreciated!