IT Quiz Bot is a Telegram bot built using the grammY framework, this bot provides an interactive quiz experience with multiple categories and difficulty levels.
- Multiple Categories: Quiz questions cover a wide range of IT topics such as programming, databases, networking, and more.
- Difficulty Levels: Choose from beginner, intermediate, or advanced quizzes.
- Interactive Gameplay: Instant feedback on your answers.
- User Statistics: Track your progress and see how well you're doing.
- Node.JS
- grammY Telegram bot framework
- TypeORM with PostgreSQL for storing user statistics
- Node.JS installed on your system
- PostgreSQL database
- Telegram Bot API Token (get it from BotFather)
- Quizzes API Token you can get it here
-
Clone the repository:
git clone https://github.com/GalievDev/it-quiz-bot.git cd it-quiz-bot -
Configure environment variables: Create a
.envfile in the root directory with the following content:TOKEN=your-telegram-bot-token API_KEY=your-quiz-api-key DB_HOST=your-db-url DB_PORT=your-db-port DB_USERNAME=your-username DB_PASSWORD=your-password DB_NAME=db-name
-
Run with docker compose:
docker-compose up --build
-
The bot and PostgreSQL database will be running in Docker containers.
- Start the bot by sending /start in Telegram.
- Select a category and difficulty level to begin the quiz.
- Answer the questions and get immediate feedback.

