This Telegram bot generates mathematical examples of varying difficulty levels for practice.
The project consists of the following components:
bot.py: Main bot logic and message handlingmath_generator.py: Example generation functionsconfig.py: Configuration file for bot tokenrun_bot.py: Entry point for running the bot
Math Example Generator Bot
│
├── bot.py
├── math_generator.py
├── config.py
├── run_bot.py
├── requirements.txt
└── README.md
- Clone the repository
- Install the required packages:
pip install -r requirements.txt - Create a
config.pyfile with your bot token:TELEGRAM_BOT_TOKEN = 'YOUR_BOT_TOKEN_HERE'
- Run the bot:
python run_bot.py
The bot responds to the following commands:
/start: Introduces the bot and lists available commands/help: Provides information about the bot's functionality/easy: Generates easy math examples/medium: Generates medium difficulty math examples/hard: Generates hard math examples
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.