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_registerDevice_

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

Register device to receive PUSH notifications

Constructors

new
account_registerDevice_(params: { no_muted?: true; token_type: number; token: string; app_sandbox: boolean; secret: Uint8Array; other_uids: Array<bigint>; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
app_sandbox: boolean

If (boolTrue) is transmitted, a sandbox-certificate will be used during transmission.

optional
no_muted: true

Avoid receiving (silent and invisible background) notifications. Useful to save battery.

other_uids: Array<bigint>

List of user identifiers of other users currently using the client

secret: Uint8Array

For FCM and APNS VoIP, optional encryption key used to encrypt push notifications

token: string

Device token, see PUSH updates for the possible values.

token_type: number

Device token type, see PUSH updates for the possible values.

Static Properties

__F: (params: { no_muted?: true; token_type: number; token: string; app_sandbox: boolean; secret: Uint8Array; other_uids: Array<bigint>; }) => boolean
readonly
[name]: string
readonly
[paramDesc]: ParamDesc