Skip to content

AI-powered Telegram bot that summarizes crypto chat discussions, detects $tickers and links, and sends daily insights directly to your DM. Built with Aiogram + OpenAI. Summarize crypto chats. Catch alpha. Sleep less. πŸš€

Notifications You must be signed in to change notification settings

dant1k/tg-summary-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– TG Crypto Chat Summarizer Bot

Python Aiogram OpenAI License GitHub Stars

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.

βš™οΈ Key features

  • πŸ•’ 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

πŸš€ Quick start

1️⃣ Clone the repository

git clone https://github.com/dant1k/tg-summary-bot.git
cd tg-summary-bot

2️⃣ Create and activate a virtual environment

python3 -m venv .venv
source .venv/bin/activate

3️⃣ Install dependencies

pip install -r requirements.txt

4️⃣ Configure the .env file

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

⚠️ To work in groups, you need to disable Privacy Mode for the bot: @BotFather β†’ Bot Settings β†’ Group Privacy β†’ Turn OFF

πŸ’¬ Commands

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

πŸ“Š Example output

🧾 24h Summary

β€’ @cryptokos: LayerZero Airdrop is active β€” [L0]
β€’ @alphauser: New DePIN testnet on Solana β€” 0xA12b...
β€’ @analyst42: Farming through Kamino gives 40% APR β€” [SOL,APT]

πŸ“ Project structure

tg-summary-bot/
β”‚
β”œβ”€β”€ bot.py              # main bot code
β”œβ”€β”€ .env.example        # configuration example
β”œβ”€β”€ .gitignore          # ignored files
β”œβ”€β”€ requirements.txt    # dependencies
└── README.md           # project description

πŸ“ Requirements

  • Python 3.11+

  • Aiogram 3.22+

  • OpenAI SDK 2.1.0+

  • APScheduler 3.11.0+

  • SQLite (included in the standard library)

🧩 Example .env.example

BOT_TOKEN=your_telegram_bot_token
OPENAI_API_KEY=your_openai_api_key
CHAT_ID=-1001234567890

πŸ”„ Update β€” October 2025

🧠 Version: DM Summaries Mode

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

πŸͺͺ License

MIT License Β© 2025 dant1k


πŸ§‘β€πŸ’» Author

@dant1k
πŸ€– @chat1k_summarizer_bot


Made with ❀️ using Aiogram + OpenAI

⭐ If you like this project, give it a star on GitHub!

About

AI-powered Telegram bot that summarizes crypto chat discussions, detects $tickers and links, and sends daily insights directly to your DM. Built with Aiogram + OpenAI. Summarize crypto chats. Catch alpha. Sleep less. πŸš€

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages