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

x/mtkruto/tl/2_types.ts>auth_Authorization_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class auth_Authorization_
import { auth_Authorization_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Contains user authorization info.

Constructors

new
auth_Authorization_(params: { setup_password_required?: true; otherwise_relogin_days?: number; tmp_sessions?: number; future_auth_token?: Uint8Array; user: enums.User; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
future_auth_token: Uint8Array
optional
otherwise_relogin_days: number

Iff setup_password_required is set and the user declines to set a 2-step verification password, they will be able to log into their account via SMS again only after this many days pass.

optional
setup_password_required: true

Suggests the user to set up a 2-step verification password to be able to log in again

optional
tmp_sessions: number

Temporary passport sessions

user: enums.User

Info on authorized user

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc