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

x/grm/src/network/mtproto_sender.ts>MTProtoSender

MTProto API Client for Deno 🦕
Go to Latest
class MTProtoSender
import { MTProtoSender } from "https://deno.land/x/grm@0.5.1/src/network/mtproto_sender.ts";

Constructors

new
MTProtoSender(authKey: undefined | AuthKey, opts: DEFAULT_OPTIONS)

Properties

private
readonly
_authKeyCallback: any
private
_autoReconnect: boolean
private
readonly
optional
_autoReconnectCallback: any
private
_cancelSend: boolean
private
readonly
_client: any
private
_connectMutex: Mutex
private
_connectTimeout: null
private
_dcId: number
private
readonly
_delay: number
private
readonly
_handlers: any
private
readonly
_isMainSender: boolean
private
readonly
_lastAcks: any[]
private
readonly
_log: Logger
private
readonly
optional
_onConnectionBreak: CallableFunction
private
readonly
_pendingAck: Set<any>
private
_pendingState: Map<string, RequestState>
private
_recvCancelPromise: Promise<CancelHelper>
private
optional
_recvCancelResolve: (value: CancelHelper) => void
private
_recvLoopHandle: any
private
readonly
_retries: number
private
_securityChecks: boolean
private
_sendCancelPromise: Promise<CancelHelper>
private
optional
_sendCancelResolve: (value: CancelHelper) => void
private
readonly
_senderCallback: any
private
_sendLoopHandle: any
private
_sendQueue: MessagePacker
private
readonly
_state: MTProtoState
private
readonly
_updateCallback: (client: any, update: UpdateConnectionState) => void
_authenticated: boolean
optional
_connection: Connection
_disconnected: boolean
_reconnecting: boolean
_userConnected: boolean
readonly
authKey: AuthKey
dcId: number
isConnecting: boolean
userDisconnected: boolean

Methods

Static Properties

DEFAULT_OPTIONS