EncryptedChat

class pyrogram.raw.types.EncryptedChat

Encrypted chat.

Constructor type of EncryptedChat.

Details
  • Layer: 126

  • ID: 0xfa56ce36

Parameters
  • id (int 32-bit) – Chat ID.

  • access_hash (int 64-bit) – Check sum dependant on the user ID.

  • date (int 32-bit) – Date chat was created.

  • admin_id (int 32-bit) – Chat creator ID.

  • participant_id (int 32-bit) – ID of the second chat participant.

  • g_a_or_b (bytes) – B = g ^ b mod p, if the currently authorized user is the chat’s creator,or A = g ^ a mod p otherwiseSee Wikipedia for more info.

  • key_fingerprint (int 64-bit) – 64-bit fingerprint of received key.

Methods

This object can be returned by 2 methods:

messages.RequestEncryption

Sends a request to start a secret chat to the user.

messages.AcceptEncryption

Confirms creation of a secret chat.