EncryptedChatRequested

class pyrogram.raw.types.EncryptedChatRequested

Request to create an encrypted chat.

Constructor of EncryptedChat.

Details:
  • Layer: 223

  • 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, for more info click here

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

TL Schema

encryptedChatRequested#48f1d94c
flags:#
folder_id:flags.0?int
id:int
access_hash:long
date:int
admin_id:long
participant_id:long
g_a:bytes

= EncryptedChat

Parameter Tree

EncryptedChatRequested
├── folder_idint (optional)
├── idint
├── access_hashlong
├── dateint
├── admin_idlong
├── participant_idlong
└── g_abytes

Example

EncryptedChatRequested(
    id=0,
    access_hash=0,
    date=0,
    admin_id=0,
    participant_id=0,
    g_a=b"data",
)