import { telegramBaseClient } from "https://deno.land/x/grm@0.5.1/src/client/mod.ts";
const { TelegramBaseClient } = telegramBaseClient;
Constructors
Properties
private
_exportedSenderPromises: Map<number, Promise<MTProtoSender>>protected
optional
_proxy: ProxyInterface_entityCache: EntityCache
_eventBuilders: [EventBuilder, CallableFunction][]
_log: Logger
optional
_parseMode: ParseInterface_semaphore: Semaphore
optional
_sender: MTProtoSendersession: Session
Methods
_authKeyCallback(authKey: AuthKey, dcId: number)
_borrowExportedSender(): Promise<MTProtoSender>
_cleanupExportedSender(dcId: number)
_connectSender(sender: MTProtoSender, dcId: number)
_createExportedSender(dcId: number)
destroy()
getDC(_dcId: number, _download: boolean): Promise<{ id: number; ipAddress: string; port: number; }>
getSender(dcId: number): Promise<MTProtoSender>
invoke<R extends Api.AnyRequest>(_request: R): Promise<R["__response"]>
setLogLevel(level: LogLevel | `${LogLevel}`)