{% extends "base.html" %} {% from "_macros.html" import icon %} {% from "_macros_ui.html" import loading %} {% block title %}Диалоги — TG Agent{% endblock %} {% block content %} {% if refresh_warning %} {% endif %} {% if refresh_command_id %}
Обновление диалогов выполняется…
{% endif %}

Диалоги

+ Создать канал
{% if accounts %}
Открыть Photo Loader Если аккаунт не выбран, откроется первый доступный профиль.
{% else %}
Открыть Photo Loader Сначала добавьте Telegram-аккаунт в настройках.
{% endif %} {% if accounts %}
{# No hx-push-url here: the address bar must keep the real /dialogs/ URL, not the bare /dialogs/fragments/list partial (a reload/bookmark would render chrome-less). The "Обновить диалоги" form lives INSIDE the swapped #dialogs-list fragment so its hidden phone always matches the account currently shown (see dialogs/_list.html). #} {{ icon("loading") }} Загрузка диалогов…
{% endif %}
{% if not accounts %}

Нет подключённых аккаунтов. Добавьте аккаунт в Настройках.

{% else %} {# The dialog list (a Telegram/cache fetch) loads lazily; changing the account above swaps only this container, not the whole page (#756). #}
{{ loading(class="my-4") }}
{% endif %} {% include "dialogs/_history.html" %} {% if accounts %} {% endif %} {% endblock %}