Sends a request to start a secret chat to the user.
Method schema is available as of layer 8. Switch ยป
Parameters
| Name |
Type |
Description |
| user_id |
InputUser |
User ID |
| random_id |
int |
Unique client request ID required to prevent resending. This also doubles as the chat ID. |
| g_a |
bytes |
A = g ^ a mod p, see Wikipedia |
Result
EncryptedChat
Only users can use this method
Possible errors
| Code |
Type |
Description |
| 400 |
DH_G_A_INVALID |
g_a invalid. |
| 400 |
INPUT_USER_DEACTIVATED |
The specified user was deleted. |
| 400 |
USER_ID_INVALID |
The provided user ID is invalid. |
| 403 |
USER_IS_BLOCKED |
You were blocked by this user. |