Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TelegramBaseClient Abstract

Hierarchy

Index

Properties

__version__: string = version

The current gramJS version.

session: Session
apiHash: string
apiId: number
_connectedDeferred: default<void>

Constructors

Accessors

  • get floodSleepThreshold(): number
  • set floodSleepThreshold(value: number): void
  • set maxConcurrentDownloads(value: number): void
  • get connected(): undefined | boolean
  • get disconnected(): boolean

Methods

  • _initSession(): Promise<void>
  • disconnect(): Promise<void>
  • _disconnect(): Promise<void>
  • destroy(): Promise<void>
  • getDC(dcId: number, download: boolean): Promise<{ id: number; ipAddress: string; port: number }>
  • invoke<R>(request: R): Promise<R["__response"]>

Generated using TypeDoc