SecureFile

class pyrogram.raw.types.SecureFile

Secure passport file, for more info see the passport docs »

Constructor of SecureFile.

Details:
  • Layer: 223

  • ID: 7D09C27E

Parameters:
  • id (int 64-bit) – ID

  • access_hash (int 64-bit) – Access hash

  • size (int 64-bit) – File size

  • dc_id (int 32-bit) – DC ID

  • date (int 32-bit) – Date of upload

  • file_hash (bytes) – File hash

  • secret (bytes) – Secret

TL Schema

secureFile#7d09c27e
id:long
access_hash:long
size:long
dc_id:int
date:int
file_hash:bytes
secret:bytes

= SecureFile

Parameter Tree

SecureFile
├── idlong
├── access_hashlong
├── sizelong
├── dc_idint
├── dateint
├── file_hashbytes
└── secretbytes

Example

SecureFile(
    id=0,
    access_hash=0,
    size=0,
    dc_id=0,
    date=0,
    file_hash=b"data",
    secret=b"data",
)