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>Authorization_

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

Logged-in session

Constructors

new
Authorization_(params: { current?: true; official_app?: true; password_pending?: true; encrypted_requests_disabled?: true; call_requests_disabled?: true; unconfirmed?: true; hash: bigint; device_model: string; platform: string; system_version: string; api_id: number; app_name: string; app_version: string; date_created: number; date_active: number; ip: string; country: string; region: string; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
api_id: number
app_name: string

App name

app_version: string

App version

optional
call_requests_disabled: true

Whether this session will accept phone calls

country: string

Country determined from IP

optional
current: true

Whether this is the current session

date_active: number

When was the session last active

date_created: number

When was the session created

device_model: string

Device model

optional
encrypted_requests_disabled: true

Whether this session will accept encrypted chats

hash: bigint

Identifier

ip: string

Last known IP

optional
official_app: true

Whether the session is from an official app

optional
password_pending: true

Whether the session is still waiting for a 2FA password

platform: string

Platform

region: string

Region determined from IP

system_version: string

System version

optional
unconfirmed: true

Whether the session is unconfirmed, see here » for more info.

Static Properties

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