Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mtkruto/mod.ts>Transport

Cross-runtime JavaScript library for building Telegram clients
Latest
class Transport
Re-export
Abstract
import { Transport } from "https://deno.land/x/mtkruto@0.6.3/mod.ts";

Properties

protected
obfuscationParameters: { encryptionCTR: CTR; decryptionCTR: CTR; } | null
abstract
readonly
initialized: boolean

Methods

protected
decrypt(buffer: Uint8Array): Promise<Uint8Array>
protected
encrypt(buffer: Uint8Array): Promise<Uint8Array>
deinitialize(): MaybePromise<void>
abstract
initialize(): MaybePromise<void>
abstract
receive(): MaybePromise<Uint8Array>
abstract
send(buffer: Uint8Array): MaybePromise<void>