Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • TelegramBot

Implements

Index

Constructors

  • new TelegramBot(__namedParameters: TelegramBotOptions): TelegramBot

Properties

id: number
platform: "telegram" = TELEGRAM
token: string

Methods

  • fetchFile(fileId: string): Promise<null | { content: ReadableStream; contentLength?: number; contentType?: string }>
  • Parameters

    • fileId: string

    Returns Promise<null | { content: ReadableStream; contentLength?: number; contentType?: string }>

  • makeApiCall<Result>(method: string, parameters?: Record<string, unknown>, uploadingFiles?: UploadingFile[]): Promise<Result>
  • start(): Promise<void>
  • stop(): Promise<void>

Generated using TypeDoc