auth.bindTempAuthKey
Binds a temporary authorization key `temp_auth_key_id` to the permanent authorization key `perm_auth_key_id`.
| Name | Type | Required | Description |
|---|---|---|---|
perm_auth_key_id | long | Yes | Permanent auth_key_id to bind to |
nonce | long | Yes | Random long from [Binding message contents](#binding-message-contents) |
expires_at | int | Yes | Unix timestamp to invalidate temporary key, see [Binding message contents](#binding-message-contents) |
encrypted_message | bytes | Yes | See [Generating encrypted_message](#generating-encrypted-message) |
Responses
Bool
MTProto RPC
- 400 · ENCRYPTED_MESSAGE_INVALID — Encrypted message invalid.
- 400 · EXPIRES_AT_INVALID — The specified expires_at timestamp is invalid.
- 400 · TEMP_AUTH_KEY_ALREADY_BOUND — The passed temporary key is already bound to another **perm_auth_key_id**.
- 400 · TEMP_AUTH_KEY_EMPTY — No temporary auth key provided.