messages.acceptEncryption
Confirms creation of a secret chat
| Name | Type | Required | Description |
|---|---|---|---|
peer | InputEncryptedChat | Yes | Secret chat ID |
g_b | bytes | Yes | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) |
key_fingerprint | long | Yes | 64-bit fingerprint of the received key |
Responses
EncryptedChat
MTProto RPC
- 400 · CHAT_ID_INVALID — The provided chat id is invalid.
- 400 · ENCRYPTION_ALREADY_ACCEPTED — Secret chat already accepted.
- 400 · ENCRYPTION_ALREADY_DECLINED — The secret chat was already declined.