Options
All
  • Public
  • Public/Protected
  • All
Menu

A custom file class that mimics the browser's File class.
You should use this whenever you want to upload a file.

Hierarchy

  • CustomFile

Index

Properties

Constructors

Properties

name: string

The name of the file to be uploaded. This is what will be shown in telegram

size: number

The size of the file. this should be the exact size to not lose any information

path: string

The full path on the system to where the file is. this will be used to read the file from.
Can be left empty to use a buffer instead

buffer?: Buffer

in case of the no path a buffer can instead be passed instead to upload.

Constructors

  • new CustomFile(name: string, size: number, path: string, buffer?: Buffer): CustomFile

Generated using TypeDoc