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

x/mtkruto/transport/0_transport.ts>Transport

Cross-runtime JavaScript library for building Telegram clients
Latest
class Transport
Abstract
import { Transport } from "https://deno.land/x/mtkruto@0.6.3/transport/0_transport.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>
abstract
initialize(): MaybePromise<void>
abstract
receive(): MaybePromise<Uint8Array>
abstract
send(buffer: Uint8Array): MaybePromise<void>