FileCredentials

class telegram.FileCredentials(file_hash, secret, *, api_kwargs=None)[source]

Bases: telegram.TelegramObject

These credentials can be used to decrypt encrypted files from the front_side, reverse_side, selfie and files fields in EncryptedPassportData.

Parameters:
hash[source]

Checksum of encrypted file

Type:

str

secret[source]

Secret of encrypted file

Type:

str