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

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

Encrypted chat

Constructors

new
EncryptedChat_(params: { id: number; access_hash: bigint; date: number; admin_id: bigint; participant_id: bigint; g_a_or_b: Uint8Array; key_fingerprint: bigint; })

Properties

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

Check sum dependent on the user ID

admin_id: bigint

Chat creator ID

date: number

Date chat was created

g_a_or_b: Uint8Array

B = g ^ b mod p, if the currently authorized user is the chat's creator,
or A = g ^ a mod p otherwise
See Wikipedia for more info

id: number

Chat ID

key_fingerprint: bigint

64-bit fingerprint of received key

participant_id: bigint

ID of the second chat participant

Static Properties

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