🤖 CryptoLearnBot
CryptoLearnBot is a Telegram-based educational bot designed to teach users about Decentralized Finance (DeFi) through bite-sized lessons, interactive quizzes, and progress tracking.
It is perfect for beginners who want to understand crypto and DeFi in a fun, structured way.
🌟 Features
📘 Modular Learning System — Learn DeFi through structured modules. 📄 Resource Access — Each module includes a PDF resource link. 🧠 Quizzes — 5–15 multiple-choice questions after each lesson. 🔒 Progress Lock — Users must score at least 50% to unlock the next module. ✅ Progress Tracker — Displays completed modules with green checkmarks. 💬 Easy Commands — Simple Telegram commands for navigation.
git clone https://github.com/<your-username>/CryptoLearnBot.git
cd CryptoLearnBotpython -m venv venv
source venv/bin/activate # (macOS/Linux)
venv\Scripts\activate # (Windows)pip install -r requirements.txtIn the root directory, create a file named .env and add:
BOT_TOKEN=your_telegram_bot_token_here
python -m src.botCryptoLearnBot/
│
├── data/
│ ├── lessons.json # Course and quiz data
│ └── users.json # User progress data
│
├── src/
│ └── bot.py # Main bot logic
│
├── .env # Environment variables
├── requirements.txt # Python dependencies
└── README.md # Project documentation
- When a user types
/start, the bot greets them and offers to start learning. - The user selects “Start Learning” to view available modules.
- Each module provides a link to its DeFi learning material (hosted on Google Drive).
- After studying, the user answers a 5-question quiz.
- A score of 50% or more unlocks the next module automatically.
- Progress is stored in
data/users.json.
- Python Telegram Bot
- dotenv
- JSON for data storage
- Upload PDFs directly to the bot
- Add image and video lessons
- Track quiz scores and display badges
- Add community leaderboard
This project is licensed under the MIT License — free to use, modify, and build on.