Бот для капчи в чатах
Roman Sergienko
2026-10-10 cf4285e1e0ac8e76dc02729e64beb7cb28511fa1
web/templates/chats.html
@@ -3,8 +3,8 @@
{% block header %}Чаты{% endblock %}
{% block content %}
<div class="overflow-hidden rounded-xl border border-gray-200 dark:border-gray-800 bg-white dark:bg-gray-900 shadow-sm">
    <table class="w-full text-sm">
<div class="overflow-x-auto rounded-xl border border-gray-200 dark:border-gray-800 bg-white dark:bg-gray-900 shadow-sm">
    <table class="w-full min-w-[640px] text-sm">
        <thead class="bg-gray-50 dark:bg-gray-900/60 text-gray-500 dark:text-gray-400">
            <tr>
                <th class="px-5 py-3 text-left font-medium">Чат</th>
@@ -18,8 +18,13 @@
            {% set cfg = cfgs.get(c.chat_id) %}
            <tr class="hover:bg-gray-50 dark:hover:bg-gray-800/50">
                <td class="px-5 py-3">
                    <div class="font-medium">{{ c.title or c.chat_id }}</div>
                    <div class="text-xs text-gray-500">id {{ c.chat_id }} · {{ c.type }}</div>
                    <div class="flex items-center gap-3">
                        <img src="/avatar/{{ c.chat_id }}" alt="" class="h-8 w-8 rounded-full bg-gray-200 object-cover dark:bg-gray-700" onerror="this.style.visibility='hidden'">
                        <div>
                            <div class="font-medium">{{ c.title or c.chat_id }}</div>
                            <div class="text-xs text-gray-500">id {{ c.chat_id }} · {{ c.type }}</div>
                        </div>
                    </div>
                </td>
                <td class="px-5 py-3 text-gray-500">{{ cfg.btn_count }} кнопки · {{ cfg.timeout }} с · {{ cfg.max_attempts }} попытки</td>
                <td class="px-5 py-3 text-gray-500">{{ cfg.warn_limit }} · {{ "бан" if cfg.warn_action == "ban" else "мут" }}</td>