TG Summary Bot is a Telegram bot that collects discussions from crypto chats every day and generates a brief summary.
It highlights idea authors, tickers, contracts, links, and helps you quickly understand what has been discussed over the past 24 hours.
- π Automatic summary every 24 hours (at 09:00 Kyiv time)
- π¬ Command
/summary_now
β instant generation of a daily overview - πββοΈ Shows author, tickers, contracts, and links
- πΎ Stores message history in SQLite
- π€ Uses OpenAI (
gpt-4o-mini
) for analysis - β‘ Easy installation and minimal dependencies
git clone https://github.com/dant1k/tg-summary-bot.git
cd tg-summary-bot
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Create a .env file in the root of the project and fill it with your data:
BOT_TOKEN=your_bot_token_from_BotFather
OPENAI_API_KEY=your_openai_api_key
CHAT_ID=-100XXXXXXXXXX
Command | Description |
---|---|
/ping |
Check that the bot is working |
/id |
Find out the chat_id of the chat |
/summary_now |
Create a summary manually |
(automatically) | Daily summary at 09:00 Kyiv time |
π§Ύ 24h Summary
β’ @cryptokos: LayerZero Airdrop is active β [L0]
β’ @alphauser: New DePIN testnet on Solana β 0xA12b...
β’ @analyst42: Farming through Kamino gives 40% APR β [SOL,APT]
tg-summary-bot/
β
βββ bot.py # main bot code
βββ .env.example # configuration example
βββ .gitignore # ignored files
βββ requirements.txt # dependencies
βββ README.md # project description
-
Python 3.11+
-
Aiogram 3.22+
-
OpenAI SDK 2.1.0+
-
APScheduler 3.11.0+
-
SQLite (included in the standard library)
BOT_TOKEN=your_telegram_bot_token
OPENAI_API_KEY=your_openai_api_key
CHAT_ID=-1001234567890
Description:
Bot now sends all daily and manual summaries directly to your DM, instead of posting them in group chats.
He quietly collects messages in groups where he is a member β no admin rights required.
Changes:
- All
/commands
work only in private chat with the bot /summary_now <chat_id>
sends a 24-hour digest in DM/auto_on
enables daily digest at 09:00/auto_off
disables automation- Supports grouping by user, tickers (
$APT
,$SOL
), and links - Cleaner message formatting for easier reading
How to update (already done for you):
git pull origin main
launchctl kickstart -k gui/$UID/com.tgsummary.bot
π Coming next
π§© User-mode watcher (Telethon) β to read closed chats where only your personal account is a member
π§° Web dashboard for chat analytics
π Inline graphs of activity per token / user
MIT License Β© 2025 dant1k
@dant1k
π€ @chat1k_summarizer_bot
Made with β€οΈ using Aiogram + OpenAI
β If you like this project, give it a star on GitHub!