{% extends "base.html" %} {% block title %}Каналы — TG Agent{% endblock %} {% block content %}

Каналы

Добавить канал
Форматы: @username, t.me/username, https://t.me/username, https://t.me/+invite_hash, числовой ID
Импорт
{% if channels or show_all %}
Активные Все каналы
{% for ch in channels %} {% set st = latest_stats.get(ch.channel_id) if latest_stats else None %} {% endfor %}
ID канала Название Username Описание Тип Статус Сообщений Подписчики Просмотры Реакции Репосты Фильтр Действия
{{ ch.channel_id }} {{ ch.title or "—" }} {% if ch.username %}@{{ ch.username }}{% else %}—{% endif %} {% if ch.about %}{{ ch.about[:60] }}{% if ch.about|length > 60 %}…{% endif %}{% else %}—{% endif %} {% if ch.channel_type == "channel" %}{% if not ch.username %}Канал 🔒{% else %}Канал{% endif %}{% elif ch.channel_type == "supergroup" %}{% if not ch.username %}Супергруппа 🔒{% else %}Супергруппа{% endif %}{% elif ch.channel_type == "gigagroup" %}{% if not ch.username %}Гигагруппа 🔒{% else %}Гигагруппа{% endif %}{% elif ch.channel_type == "group" %}{% if not ch.username %}Группа 🔒{% else %}Группа{% endif %}{% elif ch.channel_type == "forum" %}{% if not ch.username %}Форум 🔒{% else %}Форум{% endif %}{% elif ch.channel_type == "monoforum" %}Монофорум{% elif ch.channel_type == "restricted" %}Ограничен{% elif ch.channel_type == "scam" %}Скам ⚠️{% elif ch.channel_type == "fake" %}Фейк ⚠️{% elif ch.channel_type == "unavailable" %}Недоступен{% else %}Непроверен{% endif %}{% if ch.has_comments %} 💬{% endif %} {% if ch.is_filtered %} {% elif ch.is_active %} {% else %}{% endif %} {{ ch.message_count }} {%- set sub = st.subscriber_count if st and st.subscriber_count is not none else none -%} {%- set prev_sub = prev_subscriber_counts.get(ch.channel_id) if prev_subscriber_counts else none -%} {%- if sub is not none -%} {{ sub }} {%- if prev_sub is not none -%} {%- if sub > prev_sub -%} {%- elif sub < prev_sub -%} {%- else -%} {%- endif -%} {%- endif -%} {%- else -%}—{%- endif -%} {{ "%.0f"|format(st.avg_views) if st and st.avg_views is not none else "—" }} {{ "%.0f"|format(st.avg_reactions) if st and st.avg_reactions is not none else "—" }} {{ "%.0f"|format(st.avg_forwards) if st and st.avg_forwards is not none else "—" }} {% if ch.is_filtered %} {% set flag_emoji = { "low_uniqueness": ("🖨️", "Низкая уникальность контента"), "low_subscriber_ratio": ("📉", "Мало подписчиков"), "low_subscriber_manual": ("✋", "Мало подписчиков (абс.)"), "manual": ("🚫", "Ручная фильтрация"), "cross_channel_spam": ("📢", "Кросс-канальный спам"), "non_cyrillic": ("🌐", "Не кириллический контент"), "chat_noise": ("💬", "Шум чата"), "username_changed": ("🔀", "Сменил юзернейм") } %} {% if ch.filter_flags %} {% for flag in ch.filter_flags.split(',') %} {% set f = flag.strip() %} {% if f in flag_emoji %} {{ flag_emoji[f][0] }} {% else %} 🚫 {% endif %} {% endfor %} {% else %} 🚫 {% endif %} {% else %} — {% endif %} {% if ch.is_filtered %}
{% if ch.message_count > 0 %}
{% endif %} {% endif %}
{% for ch in channels %} {% set st = latest_stats.get(ch.channel_id) if latest_stats else None %}
{% if ch.is_filtered %} {% elif ch.is_active %} {% else %}{% endif %} {{ ch.title or "—" }} {% if ch.has_comments %}💬{% endif %}
{% if ch.about %}{{ ch.about[:60] }}{% if ch.about|length > 60 %}…{% endif %}{% endif %} {% if ch.username %}@{{ ch.username }} · {% endif %} ID: {{ ch.channel_id }} · {{ ch.message_count }} сообщ. {%- if st -%} {%- if st.subscriber_count is not none %} · {{ st.subscriber_count }} {%- set prev_sub = prev_subscriber_counts.get(ch.channel_id) if prev_subscriber_counts else none -%} {%- if prev_sub is not none -%} {%- if st.subscriber_count > prev_sub %} {%- elif st.subscriber_count < prev_sub %} {%- else %} {%- endif -%} {%- endif %} подп. {%- endif -%} {%- if st.avg_views is not none %} · 👁 {{ "%.0f"|format(st.avg_views) }}{%- endif -%} {%- if st.avg_reactions is not none %} · ❤️ {{ "%.0f"|format(st.avg_reactions) }}{%- endif -%} {%- if st.avg_forwards is not none %} · ↪ {{ "%.0f"|format(st.avg_forwards) }}{%- endif -%} {%- endif -%}
{% if ch.is_filtered %}
{% if ch.message_count > 0 %}
{% endif %} {% endif %}
{% endfor %}
{% else %}

Нет добавленных каналов.

{% endif %} {% endblock %}