messages.requestEncryption
Sends a request to start a secret chat to the user.
Example
TL schema
Parameters
Name | Type | Description |
user_id | User ID | |
random_id | Unique client request ID required to prevent resending. This also doubles as the chat ID. | |
g_a | A = g ^ a mod p, see Wikipedia |
Result
Possible errors
Code | Type | Description |
400 | DH_G_A_INVALID | g_a invalid |
400 | USER_ID_INVALID | The provided user ID is invalid |
Can bots use this methd ?
yes
Related pages
Last updated