python-telegram-bot/docs/substitutions/application.rst

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

1 line
403 B
ReStructuredText
Raw Normal View History

.. |app_run_shutdown| replace:: The app will shut down when :exc:`KeyboardInterrupt` or :exc:`SystemExit` is raised. This also works from within handlers, error handlers and jobs. However, using :meth:`~telegram.ext.Application.stop_running` will give a somewhat cleaner shutdown behavior than manually raising those exceptions. On unix, the app will also shut down on receiving the signals specified by