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

x/mtkruto/mod.ts>Transport

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

Properties

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

Methods

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