messages.acceptEncryption
Confirms creation of a secret chat
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
peer | InputEncryptedChat | はい | Secret chat ID |
g_b | bytes | はい | `B = g ^ b mod p`, see [Wikipedia](https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange) |
key_fingerprint | long | はい | 64-bit fingerprint of the received key |
レスポンス
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.