Skip to content
\n

I get this error:

\n
Traceback (most recent call last):\n  File \"/home/kaki/.local/lib/python3.10/site-packages/telegram/ext/_application.py\", line 1112, in __run\n    loop.run_until_complete(self.shutdown())\n  File \"/usr/lib/python3.10/asyncio/base_events.py\", line 625, in run_until_complete\n    self._check_running()\n  File \"/usr/lib/python3.10/asyncio/base_events.py\", line 584, in _check_running\n    raise RuntimeError('This event loop is already running')\nRuntimeError: This event loop is already running
\n

How can I launch a bot without creating a new event loop?

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

Hi. Please have a look at https://github.com/python-telegram-bot/python-telegram-bot/wiki/Frequently-requested-design-patterns#running-ptb-alongside-other-asyncio-frameworks

","upvoteCount":2,"url":"https://github.com/python-telegram-bot/python-telegram-bot/discussions/4715#discussioncomment-12454109"}}}
Discussion options

You must be logged in to vote

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kaki-In
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants