Function fromBuffer

  • The buffer will be uploaded as file to Telegram using multipart/form-data.

    10 MB max size for photos, 50 MB for other files.

    Parameters

    • buffer: Buffer
    • Optional filename: string
      Optional

    Returns InputFile

Generated using TypeDoc