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

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

Sends a Telegram Passport authorization form, effectively sharing data with the service

Constructors

new
account_acceptAuthorization_(params: { bot_id: bigint; scope: string; public_key: string; value_hashes: Array<enums.SecureValueHash>; credentials: enums.SecureCredentialsEncrypted; })

Properties

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

Bot ID

credentials: enums.SecureCredentialsEncrypted

Encrypted values

public_key: string

Service's public key

scope: string

Telegram Passport element types requested by the service

value_hashes: Array<enums.SecureValueHash>

Types of values sent and their hashes

Static Properties

__F: (params: { bot_id: bigint; scope: string; public_key: string; value_hashes: Array<enums.SecureValueHash>; credentials: enums.SecureCredentialsEncrypted; }) => boolean
readonly
[name]: string
readonly
[paramDesc]: ParamDesc