Hide navigation sidebar
Hide table of contents sidebar
PTB has undergone significant changes in v20. Please read the documentation carefully and also check out the transition guide in the wiki.
Back to top
Toggle table of contents sidebar

# telegram.warnings Module

This module contains classes used for warnings issued by this library.

New in version 20.0.

exception telegram.warnings.PTBDeprecationWarning

  Bases: `telegram.warnings.PTBUserWarning`, `DeprecationWarning`

  Custom warning class for deprecations in this library.

  Changed in version 20.0: Renamed TelegramDeprecationWarning to PTBDeprecationWarning.

exception telegram.warnings.PTBRuntimeWarning

  Bases: `telegram.warnings.PTBUserWarning`, `RuntimeWarning`

  Custom runtime warning class used for warnings in this library.

  New in version 20.0.

exception telegram.warnings.PTBUserWarning

  Bases: `UserWarning`

  Custom user warning class used for warnings in this library.

  See also

  Exceptions, Warnings and Logging

  New in version 20.0.