Telegram bot for AWS certification practice application
2.5K
A Telegram bot built with Grammy framework for AWS certification quiz practice.
Install Dependencies
npm install
Configure Environment Variables
Update .env file with your bot token:
BOT_TOKEN=YOUR_TELEGRAM_BOT_TOKEN
MONGODB_URI=mongodb://localhost:27017/awscert
Create Telegram Bot
/newbot commandBOT_TOKEN in .envStart the Bot
Recommended (handles conflicts automatically):
node bot-manager.js start
Alternative methods:
# Standard start
npm start
# or
node bot.js
# Windows PowerShell
.\bot.ps1 start
# Windows Command Prompt
bot.bat start
Note: If you get a "409 Conflict" error, see the Bot Management Guide
If you see this error:
GrammyError: Call to 'getUpdates' failed! (409: Conflict...)
Quick Fix:
node bot-manager.js start
For detailed troubleshooting, see BOT_MANAGEMENT.md
/start command to begin/start - Start a new quiz session and show available certificates/help - Display comprehensive help guide with all commands and features/bookmark <question_number> - Save a specific question for later review/bookmarks - View all your saved bookmarked questions/revision - Review questions you answered incorrectlyAccess Code System - Enter generated access codes for personalized question sets
Progress Tracking - Automatic saving of answers and wrong responses
Detailed Explanations - Comprehensive explanations for each question
Session Management - Maintains quiz state throughout the session
/start - Start the bot and show certificate selection
Welcome & Certificate Selection
Access Code Entry
Quiz Questions
Wrong Answer Handling
Results Summary
certificates - Available AWS certificatesaccess-code-questions - Questions assigned to access codesquizzes - Question bankquiz-attempts - Saved quiz resultsContent type
Image
Digest
sha256:636d88b0f…
Size
50.2 MB
Last updated
about 1 year ago
docker pull kenken64/awscert-telegram-bot