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

Function downloadAsBuffer

  • downloadAsBuffer(
        client: ITelegramClient,
        location: FileDownloadLocation,
        params?: FileDownloadParameters,
    ): Promise<Uint8Array>
  • Download a file and return its contents as a Buffer.

    Note: This method will download the entire file into memory at once. This might cause an issue, so use wisely!

    Parameters

    • client: ITelegramClient
    • location: FileDownloadLocation
    • Optionalparams: FileDownloadParameters

      File download parameters

    Returns Promise<Uint8Array>

    • Defined in packages/core/src/highlevel/methods/files/download-buffer.ts:17

Settings

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

Generated using TypeDoc