mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-23 06:50:29 +01:00
9520c6eeba
Co-authored-by: Harshil <37377066+harshil21@users.noreply.github.com> Co-authored-by: Simon Fong <44134941+simonfongnt@users.noreply.github.com> Co-authored-by: Piotr Rogulski <rivinek@gmail.com> Co-authored-by: poolitzer <25934244+Poolitzer@users.noreply.github.com> Co-authored-by: Or Bin <or@raftt.io> Co-authored-by: Sandro <j32g7f67hb@liamekaens.com> Co-authored-by: Hatim Zahid <63000127+HatimZ@users.noreply.github.com> Co-authored-by: Robi <53259730+RobiMez@users.noreply.github.com> Co-authored-by: Dmitry Kolomatskiy <58207913+lemontree210@users.noreply.github.com>
7 lines
No EOL
472 B
ReStructuredText
7 lines
No EOL
472 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. |