7dae68fd93
common._format_assets was passing cache_key=<bare asset UUID>, but the notification dispatcher writes keys as <host>:<uuid> (derived from the URL by extract_asset_id_from_url). Result: the two paths populated different keys for the same asset, so neither could hit the other's cached file_id and the WebUI stats only ever reflected the notification side. Drop the explicit cache_key — TelegramClient derives <host>:<uuid> from the URL, identical to the notification path, so one file_id cached by any dispatch or /random / /latest reply is reused by every later send.