InputFile

class pyrogram.raw.base.InputFile

Defines a file uploaded by the client.

Constructors:

This base type has 3 constructors available.

InputFile

Defines a file saved in parts using the method upload.saveFilePart.

InputFileBig

Assigns a big file (over 10 MB in size), saved in part using the method upload.saveBigFilePart.

InputFileStoryDocument

Used to edit the thumbnail/static preview of a story, see here » for more info on the full flow.

TL Schema

inputFile#f52ff27f
id:long
parts:int
name:string
md5_checksum:string

= InputFile

Parameter Tree

InputFile
├── idlong
├── partsint
├── namestring
└── md5_checksumstring

Example

InputFile(
    id=0,
    parts=0,
    name="text",
    md5_checksum="text",
)