Something went wrong with decryption. .. versionchanged:: 20.0 This class was previously named ``TelegramDecryptionError`` and was available via ``telegram.TelegramDecryptionError``.
| 260 | |
| 261 | |
| 262 | class PassportDecryptionError(TelegramError): |
| 263 | """Something went wrong with decryption. |
| 264 | |
| 265 | .. versionchanged:: 20.0 |
| 266 | This class was previously named ``TelegramDecryptionError`` and was available via |
| 267 | ``telegram.TelegramDecryptionError``. |
| 268 | """ |
| 269 | |
| 270 | __slots__ = ("_msg",) |
| 271 | |
| 272 | def __init__(self, message: str | Exception): |
| 273 | super().__init__(f"PassportDecryptionError: {message}") |
| 274 | self._msg = str(message) |
| 275 | |
| 276 | def __reduce__(self) -> tuple[type, tuple[str]]: |
| 277 | return self.__class__, (self._msg,) |
no outgoing calls
no test coverage detected
searching dependent graphs…