messages.acceptEncryption

Confirms creation of a secret chat

 Method schema is available as of layer 8. Switch ยป

Parameters

Name Type Description
peer InputEncryptedChat Secret chat ID
g_b bytes B = g ^ b mod p, see Wikipedia
key_fingerprint long 64-bit fingerprint of the received key

Result

EncryptedChat

Possible errors

Code Type Description
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.