{# Message history modal + poller for GET /dialogs/history. The endpoint returns a cached JSON snapshot (200) or enqueues a worker command and returns 202 {"command_id": N}; this fragment polls GET /telegram-commands/{id} until the command completes, then re-fetches the snapshot. Loaded once by dialogs.html, reused by every row's button. #}