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

Method _prepare_decrypt

src/telegram/_files/file.py:118–119  ·  view source on GitHub ↗
(self, buf: bytes)

Source from the content-addressed store, hash-verified

116 )
117
118 def _prepare_decrypt(self, buf: bytes) -> bytes:
119 return decrypt(b64decode(self._credentials.secret), b64decode(self._credentials.hash), buf)
120
121 async def download_to_drive(
122 self,

Callers 3

download_to_driveMethod · 0.95
download_to_memoryMethod · 0.95
download_as_bytearrayMethod · 0.95

Calls 1

decryptFunction · 0.90

Tested by

no test coverage detected