telegram.warnings Module¶
This module contains classes used for warnings issued by this library.
Added in version 20.0.
- exception telegram.warnings.PTBDeprecationWarning(version, message)[source]¶
Bases:
telegram.warnings.PTBUserWarning,DeprecationWarningCustom warning class for deprecations in this library.
Changed in version 20.0: Renamed TelegramDeprecationWarning to PTBDeprecationWarning.
- Parameters:
- exception telegram.warnings.PTBRuntimeWarning[source]¶
Bases:
telegram.warnings.PTBUserWarning,RuntimeWarningCustom runtime warning class used for warnings in this library.
Added in version 20.0.
- exception telegram.warnings.PTBUserWarning[source]¶
Bases:
UserWarningCustom user warning class used for warnings in this library.
See also
Added in version 20.0.