InputDocumentFileLocation

class pyrogram.raw.types.InputDocumentFileLocation

Document location (video, voice, audio, basically every type except photo)

Constructor of InputFileLocation.

Details:
  • Layer: 223

  • ID: BAD07584

Parameters:
  • id (int 64-bit) – Document ID

  • access_hash (int 64-bit) – access_hash parameter from the document constructor

  • file_reference (bytes) – File reference

  • thumb_size (str) – Thumbnail size to download the thumbnail

TL Schema

inputDocumentFileLocation#bad07584
id:long
access_hash:long
file_reference:bytes
thumb_size:string

= InputFileLocation

Parameter Tree

InputDocumentFileLocation
├── idlong
├── access_hashlong
├── file_referencebytes
└── thumb_sizestring

Example

InputDocumentFileLocation(
    id=0,
    access_hash=0,
    file_reference=b"data",
    thumb_size="text",
)