InputFile

class pyrogram.raw.types.InputFile

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

Constructor of InputFile.

Details:
  • Layer: 223

  • ID: F52FF27F

Parameters:
  • id (int 64-bit) – Random file identifier created by the client

  • parts (int 32-bit) – Number of parts saved

  • name (str) – Full name of the file

  • md5_checksum (str) – In case the file’s md5-hash was passed, contents of the file will be checked prior to use

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",
)