EncryptedFile

class pyrogram.raw.types.EncryptedFile

Encrypted file.

Constructor of EncryptedFile.

Details:
  • Layer: 223

  • ID: A8008CD8

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

  • access_hash (int 64-bit) – Checking sum depending on user ID

  • size (int 64-bit) – File size in bytes

  • dc_id (int 32-bit) – Number of data center

  • key_fingerprint (int 32-bit) – 32-bit fingerprint of key used for file encryption

Functions:

This object can be returned by 1 function.

messages.UploadEncryptedFile

Upload encrypted file and associate it to a secret chat (without actually sending it to the chat).

TL Schema

encryptedFile#a8008cd8
id:long
access_hash:long
size:long
dc_id:int
key_fingerprint:int

= EncryptedFile

Parameter Tree

EncryptedFile
├── idlong
├── access_hashlong
├── sizelong
├── dc_idint
└── key_fingerprintint

Example

EncryptedFile(
    id=0,
    access_hash=0,
    size=0,
    dc_id=0,
    key_fingerprint=0,
)