EncryptedChat

class pyrogram.raw.types.EncryptedChat

Encrypted chat

Constructor of EncryptedChat.

Details:
  • Layer: 223

  • ID: 61F0D4C7

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

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

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

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

  • participant_id (int 64-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

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

encryptedChat#61f0d4c7
id:int
access_hash:long
date:int
admin_id:long
participant_id:long
g_a_or_b:bytes
key_fingerprint:long

= EncryptedChat

Parameter Tree

EncryptedChat
├── idint
├── access_hashlong
├── dateint
├── admin_idlong
├── participant_idlong
├── g_a_or_bbytes
└── key_fingerprintlong

Example

EncryptedChat(
    id=0,
    access_hash=0,
    date=0,
    admin_id=0,
    participant_id=0,
    g_a_or_b=b"data",
    key_fingerprint=0,
)