upload.GetFileHashes
- class pyrogram.raw.functions.upload.GetFileHashes
Get SHA256 hashes for verifying downloaded files
- Details:
Layer:
223ID:
9156982A
- Parameters:
location (
InputFileLocation) – Fileoffset (
int64-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
├── location →
InputFileLocation│ ├──
InputFileLocation│ │ ├── volume_id →
long│ │ ├── local_id →
int│ │ ├── secret →
long│ │ └── file_reference →
bytes│ │ ├── id →
long│ │ └── access_hash →
long│ │ ├── id →
long│ │ ├── access_hash →
long│ │ ├── file_reference →
bytes│ │ └── thumb_size →
string│ ├──
InputSecureFileLocation│ │ ├── id →
long│ │ └── access_hash →
long│ ├──
InputTakeoutFileLocation│ ├──
InputPhotoFileLocation│ │ ├── id →
long│ │ ├── access_hash →
long│ │ ├── file_reference →
bytes│ │ └── thumb_size →
string│ │ ├── id →
long│ │ ├── access_hash →
long│ │ ├── file_reference →
bytes│ │ ├── volume_id →
long│ │ ├── local_id →
int│ │ └── secret →
long│ │ ├── big →
true (optional)│ │ ├── peer →
InputPeer│ │ │ ├──
InputPeerEmpty│ │ │ ├──
InputPeerSelf│ │ │ ├──
InputPeerChat│ │ │ ├──
InputPeerUser│ │ │ ├──
InputPeerChannel│ │ │ ├──
InputPeerUserFromMessage│ │ │ └──
InputPeerChannelFromMessage│ │ └── photo_id →
long│ ├──
InputStickerSetThumb│ │ ├── stickerset →
InputStickerSet│ │ │ ├──
InputStickerSetEmpty│ │ │ ├──
InputStickerSetID│ │ │ │ ├── id →
long│ │ │ │ └── access_hash →
long│ │ │ ├──
InputStickerSetShortName│ │ │ │ └── short_name →
string│ │ │ ├──
InputStickerSetAnimatedEmoji│ │ │ ├──
InputStickerSetDice│ │ │ │ └── emoticon →
string│ │ │ ├──
InputStickerSetAnimatedEmojiAnimations│ │ │ ├──
InputStickerSetPremiumGifts│ │ │ ├──
InputStickerSetEmojiGenericAnimations│ │ │ ├──
InputStickerSetEmojiDefaultStatuses│ │ │ ├──
InputStickerSetEmojiDefaultTopicIcons│ │ │ └──
InputStickerSetTonGifts│ │ └── thumb_version →
int│ └──
InputGroupCallStream│ ├── call →
InputGroupCall│ │ ├──
InputGroupCall│ │ │ ├── id →
long│ │ │ └── access_hash →
long│ │ ├──
InputGroupCallSlug│ │ │ └── slug →
string│ │ └──
InputGroupCallInviteMessage│ │ └── msg_id →
int│ ├── time_ms →
long│ ├── scale →
int│ ├── video_channel →
int (optional)│ └── video_quality →
int (optional)└── offset →
longExample
await app.invoke(
GetFileHashes(
location=InputFileLocation(
volume_id=0,
local_id=0,
secret=0,
file_reference=b"data"
),
offset=0,
)
)