No description
  • Python 96.8%
  • Dockerfile 3.2%
Find a file
2026-01-15 18:58:48 +07:00
bot log level error only 2025-10-07 15:33:19 +07:00
.env.example initial commit 2025-09-27 00:16:23 +07:00
.gitignore initial commit 2025-09-27 00:16:23 +07:00
.python-version initial commit 2025-09-27 00:16:23 +07:00
bot.log initial commit 2025-09-27 00:16:23 +07:00
docker-compose.yml docker compose fix 2026-01-15 18:58:48 +07:00
Dockerfile initial commit 2025-09-27 00:16:23 +07:00
pyproject.toml pyproject.toml description added 2025-10-29 13:28:49 +07:00
README.md initial commit 2025-09-27 00:16:23 +07:00
uv.lock initial commit 2025-09-27 00:16:23 +07:00

ArchiveBot

Telegram юзербот на основе Telethon, который автоматически архивирует новые чаты с пользователями, не являющимися контактами, отключает уведомления и блокирует.

Установка

  1. Установите зависимости:

    uv sync --frozen
    
  2. Получите API ID и API Hash на https://my.telegram.org/

  3. преименуйте .env.example в .env и заполните в соответствии с вашими данными

Запуск

python bot.py

При первом запуске вам нужно будет авторизоваться с помощью номера телефона и кода подтверждения.

Docker 🐳 (рекомендуется)

  1. подготовка образа:
    docker compose build
    
  2. авторизация:
    docker run -v ./sessions:/app/sessions --rm -it archive-telegram-bot uv run python -m bot --auth
    
  3. запуск
    docker compose up --build -d
    

Спасибо за использование данного проекта!