EncryptedMessage

class pyrogram.raw.types.EncryptedMessage

Encrypted message.

Constructor of EncryptedMessage.

Details:
  • Layer: 223

  • 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_idlong
├── chat_idint
├── dateint
├── bytesbytes
└── fileEncryptedFile
└── EncryptedFile
├── idlong
├── access_hashlong
├── sizelong
├── dc_idint
└── key_fingerprintint

Example

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