teleproto - v1.229.0
    Preparing search index...

    Class CustomFile

    A custom file class compatible with File-like upload shape.
    You should use this whenever you want to upload a file.

    Index
    • Parameters

      • name: string
      • size: number
      • path: string
      • Optionalbuffer: Buffer<ArrayBufferLike>

      Returns CustomFile

    buffer?: Buffer<ArrayBufferLike>

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

    name: string

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

    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

    size: number

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