upload.GetFileHashes

class pyrogram.raw.functions.upload.GetFileHashes

Get SHA256 hashes for verifying downloaded files

Details:
  • Layer: 223

  • ID: 9156982A

Parameters:
  • location (InputFileLocation) – File

  • offset (int 64-bit) – Offset from which to get file hashes

Returns:

List of FileHash

TL Schema

upload.getFileHashes#9156982a
location:InputFileLocation
offset:long

= Vector<FileHash>

Parameter Tree

GetFileHashes
├── locationInputFileLocation
│ ├── InputFileLocation
│ │ ├── volume_idlong
│ │ ├── local_idint
│ │ ├── secretlong
│ │ └── file_referencebytes
│ │ ├── idlong
│ │ └── access_hashlong
│ │ ├── idlong
│ │ ├── access_hashlong
│ │ ├── file_referencebytes
│ │ └── thumb_sizestring
│ │ ├── idlong
│ │ └── access_hashlong
│ │ ├── idlong
│ │ ├── access_hashlong
│ │ ├── file_referencebytes
│ │ └── thumb_sizestring
│ │ ├── idlong
│ │ ├── access_hashlong
│ │ ├── file_referencebytes
│ │ ├── volume_idlong
│ │ ├── local_idint
│ │ └── secretlong
│ │ ├── bigtrue (optional)
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ └── photo_idlong
│ ├── InputStickerSetThumb
│ │ ├── stickersetInputStickerSet
│ │ │ ├── InputStickerSetEmpty
│ │ │ ├── InputStickerSetID
│ │ │ │ ├── idlong
│ │ │ │ └── access_hashlong
│ │ │ ├── InputStickerSetShortName
│ │ │ │ └── short_namestring
│ │ │ ├── InputStickerSetAnimatedEmoji
│ │ │ ├── InputStickerSetDice
│ │ │ │ └── emoticonstring
│ │ │ ├── InputStickerSetPremiumGifts
│ │ │ └── InputStickerSetTonGifts
│ │ └── thumb_versionint
│ └── InputGroupCallStream
│ ├── callInputGroupCall
│ │ ├── InputGroupCall
│ │ │ ├── idlong
│ │ │ └── access_hashlong
│ │ ├── InputGroupCallSlug
│ │ │ └── slugstring
│ │ └── InputGroupCallInviteMessage
│ │ └── msg_idint
│ ├── time_mslong
│ ├── scaleint
│ ├── video_channelint (optional)
│ └── video_qualityint (optional)
└── offsetlong

Example

await app.invoke(
    GetFileHashes(
        location=InputFileLocation(
            volume_id=0,
            local_id=0,
            secret=0,
            file_reference=b"data"
        ),
        offset=0,
    )
)