mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-29 00:12:12 +00:00
site/mod.rs held the registry, the Site trait, Fetched, the caption helpers, FetchError and, at the end, the whole media-download stack: two HTTP clients with different timeouts, the guard that refuses a URL inside the host's own network (start URL and every redirect hop), and the two streaming entry points. That stack is its own reason to change and moves whole, with its tests; CLIENT and the download fns stay re-exported at site::… so no adapter or bot call site moved. SITES becomes pub(crate) for the header rule.