auth.BindTempAuthKey
- class pyrogram.raw.functions.auth.BindTempAuthKey
Binds a temporary authorization key temp_auth_key_id to the permanent authorization key perm_auth_key_id. Each permanent key may only be bound to one temporary key at a time, binding a new temporary key overwrites the previous one.
- Details:
Layer:
223ID:
CDD42A05
- Parameters:
perm_auth_key_id (
int64-bit) – Permanent auth_key_id to bind tononce (
int64-bit) – Random long from Binding message contentsexpires_at (
int32-bit) – Unix timestamp to invalidate temporary key, see Binding message contentsencrypted_message (
bytes) – See Generating encrypted_message
- Returns:
bool
TL Schema
auth.bindTempAuthKey#cdd42a05
perm_auth_key_id:long
nonce:long
expires_at:int
encrypted_message:bytes
= Bool
Parameter Tree
BindTempAuthKey
├── perm_auth_key_id →
long├── nonce →
long├── expires_at →
int└── encrypted_message →
bytesExample
await app.invoke(
BindTempAuthKey(
perm_auth_key_id=0,
nonce=0,
expires_at=0,
encrypted_message=b"data",
)
)