miniproto.file_id.encode_file_id
miniproto.file_id.encode_file_id
Section titled “miniproto.file_id.encode_file_id”encode_file_id(media: Media | object) -> strEncode supported Telegram media or input locations into a local file ID.
Parameters:
Returns:
str– Canonical URL-safempf1_identifier containing the reusable location fields.
Raises:
TypeError– If the media cannot supply a supported reusable location.ValueError– If an extracted field cannot be encoded.