messages.AcceptEncryption
- class pyrogram.raw.functions.messages.AcceptEncryption
Confirms creation of a secret chat
- Details:
Layer:
223ID:
3DBC0415
- Parameters:
peer (
InputEncryptedChat) – Secret chat IDg_b (
bytes) – B = g ^ b mod p, see Wikipediakey_fingerprint (
int64-bit) – 64-bit fingerprint of the received key
- Returns:
TL Schema
messages.acceptEncryption#3dbc0415
peer:InputEncryptedChat
g_b:bytes
key_fingerprint:long
= EncryptedChat
Parameter Tree
AcceptEncryption
├── peer →
InputEncryptedChat│ └──
InputEncryptedChat│ ├── chat_id →
int│ └── access_hash →
long├── g_b →
bytes└── key_fingerprint →
longExample
await app.invoke(
AcceptEncryption(
peer=InputEncryptedChat(
chat_id=0,
access_hash=0
),
g_b=b"data",
key_fingerprint=0,
)
)