EncryptedMessage

class pyrogram.raw.types.EncryptedMessage

Encrypted message.

Constructor of EncryptedMessage.

Details:
  • Layer: 227

  • ID: ED18C118

Parameters:
  • random_id (int 64-bit) – Random message ID, assigned by the author of message

  • chat_id (int 32-bit) – ID of encrypted chat

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

  • bytes (bytes) – TL-serialization of DecryptedMessage type, encrypted with the key created at chat initialization

  • file (EncryptedFile) – Attached encrypted file

TL Schema

encryptedMessage#ed18c118
random_id:long
chat_id:int
date:int
bytes:bytes
file:EncryptedFile

= EncryptedMessage

Parameter Tree

EncryptedMessage
├── random_id → long
├── chat_id → int
├── date → int
├── bytes → bytes
└── file → EncryptedFile
└── EncryptedFile
├── id → long
├── access_hash → long
├── size → long
├── dc_id → int
└── key_fingerprint → int

Example

EncryptedMessage(
    random_id=app.rnd_id(),
    chat_id=0,
    date=0,
    bytes=b"data",
    file=EncryptedFileEmpty(),
)