EncryptedChatRequested#

class pyrogram.raw.types.EncryptedChatRequested#

Request to create an encrypted chat.

Constructor of EncryptedChat.

Details:
  • Layer: 158

  • ID: 48F1D94C

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

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

  • date (int 32-bit) – Chat creation date.

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

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

  • g_a (bytes) – A = g ^ a mod p, see Wikipedia.

  • folder_id (int 32-bit, optional) – Peer folder ID.

Functions:

This object can be returned by 2 functions.

messages.RequestEncryption

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

messages.AcceptEncryption

Confirms creation of a secret chat.