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

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

Encrypted message.

Constructors

new
EncryptedMessage_(params: { random_id: bigint; chat_id: number; date: number; bytes: Uint8Array; file: enums.EncryptedFile; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
bytes: Uint8Array

TL-serialization of DecryptedMessage type, encrypted with the key created at chat initialization

chat_id: number

ID of encrypted chat

date: number

Date of sending

file: enums.EncryptedFile

Attached encrypted file

random_id: bigint

Random message ID, assigned by the author of message

Static Properties

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