upload.SaveFilePart

class pyrogram.raw.functions.upload.SaveFilePart

Saves a part of file for further sending to one of the methods.

Details:
  • Layer: 223

  • ID: B304A621

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

  • file_part (int 32-bit) – Numerical order of a part

  • bytes (bytes) – Binary data, content of a part

Returns:

bool

TL Schema

upload.saveFilePart#b304a621
file_id:long
file_part:int
bytes:bytes

= Bool

Parameter Tree

SaveFilePart
├── file_idlong
├── file_partint
└── bytesbytes

Example

await app.invoke(
    SaveFilePart(
        file_id=0,
        file_part=0,
        bytes=b"data",
    )
)