MCPcopy Index your code
hub / github.com/python-telegram-bot/python-telegram-bot / PassportDecryptionError

Class PassportDecryptionError

src/telegram/error.py:262–277  ·  view source on GitHub ↗

Something went wrong with decryption. .. versionchanged:: 20.0 This class was previously named ``TelegramDecryptionError`` and was available via ``telegram.TelegramDecryptionError``.

Source from the content-addressed store, hash-verified

260
261
262class 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,)

Callers 2

decryptFunction · 0.90
decrypted_secretMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…