messages.AcceptEncryption

class pyrogram.raw.functions.messages.AcceptEncryption

Confirms creation of a secret chat

Details:
  • Layer: 223

  • ID: 3DBC0415

Parameters:
  • peer (InputEncryptedChat) – Secret chat ID

  • g_b (bytes) – B = g ^ b mod p, see Wikipedia

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

Returns:

EncryptedChat

TL Schema

messages.acceptEncryption#3dbc0415
peer:InputEncryptedChat
g_b:bytes
key_fingerprint:long

= EncryptedChat

Parameter Tree

AcceptEncryption
├── peerInputEncryptedChat
│ └── InputEncryptedChat
│ ├── chat_idint
│ └── access_hashlong
├── g_bbytes
└── key_fingerprintlong

Example

await app.invoke(
    AcceptEncryption(
        peer=InputEncryptedChat(
            chat_id=0,
            access_hash=0
        ),
        g_b=b"data",
        key_fingerprint=0,
    )
)