• Preparing search index...
  • The search index is not available
Documentation - v0.23.3
  • Documentation
  • @mtcute/bun
  • methods
  • downloadToFile

Function downloadToFile

  • downloadToFile(
        client: ITelegramClient,
        filename: string,
        location: FileDownloadLocation,
        params?: FileDownloadParameters,
    ): Promise<void>
  • Download a remote file to a local file (only for NodeJS). Promise will resolve once the download is complete.

    Parameters

    • client: ITelegramClient
    • filename: string

      Local file name to which the remote file will be downloaded

    • location: FileDownloadLocation
    • Optionalparams: FileDownloadParameters

      File download parameters

    Returns Promise<void>

    • Defined in packages/bun/src/methods/download-file.ts:14

Settings

Member Visibility
Documentation - v0.23.3
  • Loading...

Generated using TypeDoc