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

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

Represents a bot logged in using the Telegram login widget

Constructors

new
WebAuthorization_(params: { hash: bigint; bot_id: bigint; domain: string; browser: string; platform: string; date_created: number; date_active: number; ip: string; region: string; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
bot_id: bigint

Bot ID

browser: string

Browser user-agent

date_active: number

When was the web session last active

date_created: number

When was the web session created

domain: string

The domain name of the website on which the user has logged in.

hash: bigint

Authorization hash

ip: string

IP address

platform: string

Platform

region: string

Region, determined from IP address

Static Properties

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