MCPcopy Create free account
hub / github.com/TechifyBots/File-Stream-Bot / get_hash

Function get_hash

biisal/utils/file_properties.py:49–51  ·  view source on GitHub ↗
(media_msg: Message)

Source from the content-addressed store, hash-verified

47
48
49def get_hash(media_msg: Message) -> str:
50 media = get_media_from_message(media_msg)
51 return getattr(media, "file_unique_id", "")[:6]
52
53def get_name(media_msg: Message) -> str:
54 media = get_media_from_message(media_msg)

Callers 2

private_receive_handlerFunction · 0.90
channel_receive_handlerFunction · 0.90

Calls 1

get_media_from_messageFunction · 0.85

Tested by

no test coverage detected