Merge the latest main branch into the Telegram media filename fix and keep the file_unique_id-based download path on top of the refactored media handling and newer Telegram tests. Made-with: Cursor
Respect config.gateway.port when --port is omitted, while keeping CLI flags as the highest-precedence override.
Use file_unique_id when storing downloaded Telegram media so different uploads do not silently overwrite each other on disk.