messages.acceptEncryption
Confirms creation of a secret chat
Example
TL schema
Parameters
Name | Type | Description |
peer | Secret chat ID | |
g_b | B = g ^ b mod p, see Wikipedia | |
key_fingerprint | 64-bit fingerprint of the received key |
Result
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 |
Can bots use this methd ?
yes
Related pages
Last updated