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

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

Settings used by telegram servers for sending the confirm code.

Constructors

new
CodeSettings_(params?: { allow_flashcall?: true; current_number?: true; allow_app_hash?: true; allow_missed_call?: true; allow_firebase?: true; logout_tokens?: Array<Uint8Array>; token?: string; app_sandbox?: boolean; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
allow_app_hash: true

If a token that will be included in eventually sent SMSs is required: required in newer versions of android, to use the android SMS receiver APIs

optional
allow_firebase: true

Whether Firebase auth is supported

optional
allow_flashcall: true

Whether to allow phone verification via phone calls.

optional
allow_missed_call: true

Whether this device supports receiving the code using the auth.codeTypeMissedCall method

optional
app_sandbox: boolean

Used only by official iOS apps for firebase auth: whether a sandbox-certificate will be used during transmission of the push notification.

optional
current_number: true

Pass true if the phone number is used on the current device. Ignored if allow_flashcall is not set.

optional
logout_tokens: Array<Uint8Array>

Previously stored future auth tokens, see the documentation for more info »

optional
token: string

Used only by official iOS apps for Firebase auth: device token for apple push.

Static Properties

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