A Telegram bot that automatically collects interesting articles from Habr.com and posts them to a Telegram channel.
- 🤖 Automatically finds and fetches new posts from Habr
- 🧠 Uses AI to create concise summaries of long articles
- 📱 Posts news directly to your Telegram channel
- 🖼 Handles images from articles
- 📊 Provides beautiful hub statistics
- 📊
/status
- Check bot status:- Uptime
- Processed posts count
- Most popular hubs (with graph)
- Recently found posts
- General statistics
- 🔄
/force_check
- Force check for new posts immediately
- Python 3.11+
- aiogram 3
- SQLite (with SQLAlchemy)
- Checks for new posts every 5 minutes
- Protected commands through middleware
- Install Python 3.11 or higher
- Install dependencies:
pip install -r requirements.txt
- Create
.env
file with the following variables:BOT_TOKEN=your_bot_token_from_@BotFather CHANNEL_ID=your_channel_id ADMIN_IDS=admin_id1,admin_id2 MISTRAL_API_KEY=your_mistral_ai_key DATABASE_URL=sqlite+aiosqlite:///posts.db
- Run the bot:
python bot.py
- Channel must be public
- Bot must be an admin in the channel
Телеграм-бот, который автоматически собирает интересные статьи с Хабра и публикует их в телеграм-канале.
- 🤖 Автоматически находит и собирает новые посты с Хабра
- 🧠 Использует AI для создания кратких пересказов длинных статей
- 📱 Публикует новости прямо в телеграм-канал
- 🖼 Обрабатывает изображения из статей
- 📊 Предоставляет красивую статистику по хабам
- 📊
/status
- Проверить статус бота:- Время работы
- Количество обработанных постов
- Самые популярные хабы (с графиком)
- Недавно найденные посты
- Общая статистика
- 🔄
/force_check
- Принудительно проверить новые посты
- Python 3.11+
- aiogram 3
- SQLite (через SQLAlchemy)
- Проверка новых постов каждые 5 минут
- Защищенные команды через middleware
- Установите Python 3.11 или выше
- Установите зависимости:
pip install -r requirements.txt
- Создайте файл
.env
со следующими переменными:BOT_TOKEN=токен_от_@BotFather CHANNEL_ID=id_вашего_канала ADMIN_IDS=id_админа1,id_админа2 MISTRAL_API_KEY=ключ_от_mistral_ai DATABASE_URL=sqlite+aiosqlite:///posts.db
- Запустите бота:
python bot.py
- Канал должен быть публичным
- Бот должен быть администратором канала
Telegram: @nob0dy_tg
GPL-3.0 license