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: 223

  • ID: CDD42A05

Parameters:
  • perm_auth_key_id (int 64-bit) – Permanent auth_key_id to bind to

  • nonce (int 64-bit) – Random long from Binding message contents

  • expires_at (int 32-bit) – Unix timestamp to invalidate temporary key, see Binding message contents

  • encrypted_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_idlong
├── noncelong
├── expires_atint
└── encrypted_messagebytes

Example

await app.invoke(
    BindTempAuthKey(
        perm_auth_key_id=0,
        nonce=0,
        expires_at=0,
        encrypted_message=b"data",
    )
)