import { client } from "https://deno.land/x/grm@0.5.2/src/mod.ts";
const { TelegramBaseClient } = client.telegramBaseClient;
Constructors
Properties
private
_exportedSenderPromises: Map<number, Promise<MTProtoSender>>protected
optional
_proxy: ProxyInterface_ALBUMS: Map<string, [ReturnType<setTimeout>, Api.TypeUpdate[]]>
optional
_config: Api.Config_entityCache: EntityCache
_eventBuilders: [EventBuilder, CallableFunction][]
_initRequest: Api.InitConnection
_log: Logger
optional
_parseMode: ParseInterfaceoptional
_selfInputPeer: Api.InputPeerUser_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}`)