mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-25 00:27:46 +01:00
9 lines
No EOL
642 B
ReStructuredText
9 lines
No EOL
642 B
ReStructuredText
.. tip::
|
|
* When combining ``python-telegram-bot`` with other :mod:`asyncio` based frameworks, using this
|
|
method is likely not the best choice, as it blocks the event loop until it receives a stop
|
|
signal as described above.
|
|
Instead, you can manually call the methods listed below to start and shut down the application
|
|
and the :attr:`~telegram.ext.Application.updater`.
|
|
Keeping the event loop running and listening for a stop signal is then up to you.
|
|
* To gracefully stop the execution of this method from within a handler, job or error callback,
|
|
use :meth:`~telegram.ext.Application.stop_running`. |