{% macro delete_account_form(acc, accounts, notification_selected_phone) %} {% set others = accounts | rejectattr("phone", "equalto", acc.phone) | list %} {% if acc.phone == notification_selected_phone and others | length >= 2 %} {% set notify_options = [] %} {% for other in others %} {% set _ = notify_options.append({"value": other.phone, "label": other.phone ~ (" [primary]" if other.is_primary else "") ~ ("" if other.is_active else " [отключён]")}) %} {% endfor %}
{% else %} {% endif %}
{% endmacro %}

Добавить аккаунт

{% if all_accounts_flooded %} {% endif %} {% if accounts %}
{% for acc in accounts %} {% endfor %}
Телефон Статус Premium Primary Доступность Flood wait Добавлен Действия
{{ acc.phone }} {% if acc.is_active %}● Активен{% else %}● Отключён{% endif %} {% if acc.is_premium %}●{% else %}●{% endif %} {% if acc.is_primary %}●{% else %}●{% endif %} {% if account_status[acc.phone].state == 'available' %}OK {% elif account_status[acc.phone].state == 'flood' %}Flood {% elif account_status[acc.phone].state == 'session_unavailable' %}{{ session_status_label(acc.session_status) }} {% elif account_status[acc.phone].state == 'disconnected' %}Нет соединения {% else %}Неактивен{% endif %} {% if acc.flood_wait_until and account_status[acc.phone].state == 'flood' %} {{ acc.flood_wait_until|local_dt("time") }}
ещё {{ account_status[acc.phone].remaining_minutes }} мин {% elif resolve_backoffs and resolve_backoffs.get(acc.phone) %} Resolve до {{ resolve_backoffs[acc.phone]|local_dt("time") }} {% else %} — {% endif %}
{{ acc.created_at|local_dt("date") }} {% if account_status[acc.phone].state == 'session_unavailable' %} {% endif %} {% if not acc.is_primary %}
{% endif %}
{{ delete_account_form(acc, accounts, notification_selected_phone) }}
{% for acc in accounts %}
{{ acc.phone }} {% if acc.is_active %}● Активен{% else %}● Отключён{% endif %}
{% if acc.is_premium %}Premium{% endif %} {% if acc.is_primary %}· Primary{% endif %} {% if account_status[acc.phone].state == 'available' %}· Доступен{% endif %} {% if account_status[acc.phone].state == 'disconnected' %}· Не подключён{% endif %} {% if account_status[acc.phone].state == 'flood' %}· Flood до {{ acc.flood_wait_until|local_dt("time") }} ({{ account_status[acc.phone].remaining_minutes }} мин){% endif %} {% if resolve_backoffs and resolve_backoffs.get(acc.phone) %}· Resolve-backoff до {{ resolve_backoffs[acc.phone]|local_dt("time") }}{% endif %} {% if account_status[acc.phone].state == 'session_unavailable' %}· {{ session_status_label(acc.session_status) }}{% endif %} {% if acc.created_at %}· {{ acc.created_at|local_dt("date") }}{% endif %}
{% if account_status[acc.phone].state == 'session_unavailable' %} {% endif %} {% if not acc.is_primary %}
{% endif %}
{{ delete_account_form(acc, accounts, notification_selected_phone) }}
{% endfor %}
{% else %}

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

{% endif %}