Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/3_functions.ts>auth_bindTempAuthKey_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class auth_bindTempAuthKey_
extends Function_<boolean>
import { auth_bindTempAuthKey_ } from "https://deno.land/x/mtkruto@0.1.190/tl/3_functions.ts";

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.

Constructors

new
auth_bindTempAuthKey_(params: { perm_auth_key_id: bigint; nonce: bigint; expires_at: number; encrypted_message: Uint8Array; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
encrypted_message: Uint8Array
expires_at: number

Unix timestamp to invalidate temporary key, see Binding message contents

nonce: bigint

Random long from Binding message contents

perm_auth_key_id: bigint

Permanent auth_key_id to bind to

Static Properties

__F: (params: { perm_auth_key_id: bigint; nonce: bigint; expires_at: number; encrypted_message: Uint8Array; }) => boolean
readonly
[name]: string
readonly
[paramDesc]: ParamDesc