Skip to content

miniproto.media.upload.MediaUploadResult

MediaUploadResult(file_id: int, name: str, size: int, parts: int, part_size: int, big: bool, input_file: types.InputFile | types.InputFileBig, md5_checksum: str | None = None) -> None

Completed upload metadata and the MTProto input-file reference to reuse.

Attributes:

  • file_id (int) – Generated ID or int(file_id) supplied by the caller; zero is accepted when supplied.
  • name (str) – File name sent to Telegram.
  • size (int) – Exact uploaded source size in bytes.
  • parts (int) – Total successfully saved part count.
  • part_size (int) – Final KiB-aligned part size in bytes.
  • big (bool) – Whether the source exceeded the big-file threshold.
  • input_file (InputFile | InputFileBig) – Matching Telegram small or big input-file reference.
  • md5_checksum (str | None) – Small-file MD5 of uploaded bytes, otherwise None.