🤖 Automated SheerID Student/Teacher Verification Telegram Bot
Based on @auto_sheerid_bot GGBond's legacy code with improvements
A Python-based Telegram bot that automates SheerID student/teacher identity verification for multiple platforms. The bot automatically generates identity information, creates verification documents, and submits them to the SheerID platform, significantly simplifying the verification process.
| Command | Service | Type | Status |
|---|---|---|---|
/verify |
Gemini One Pro | Teacher | ✅ Complete |
/verify2 |
ChatGPT Teacher K12 | Teacher | ✅ Complete |
/verify3 |
Spotify Student | Student | ✅ Complete |
/verify4 |
Bolt.new Teacher | Teacher | ✅ Complete |
/verify5 |
YouTube Premium Student | Student | ⚠️ In Progress |
⚠️ Before Use: The
programIdin each module'sconfig.pymay need periodic updates. If verification keeps failing, please update accordingly. See the Configuration section below.
git clone https://github.com/PastKing/tgbot-verify.git
cd tgbot-verify
pip install -r requirements.txt
playwright install chromium
Copy env.example to .env and fill in the configuration:
BOT_TOKEN=your_bot_token_here
CHANNEL_USERNAME=your_channel
CHANNEL_URL=https://t.me/your_channel
ADMIN_USER_ID=your_admin_id
MYSQL_HOST=localhost
MYSQL_PORT=3306
MYSQL_USER=root
MYSQL_PASSWORD=your_password
MYSQL_DATABASE=tgbot_verify
python bot.py
cp env.example .env
nano .env
docker-compose up -d
docker-compose logs -f
Manual build:
docker build -t tgbot-verify .
docker run -d --name tgbot-verify --env-file .env -v $(pwd)/logs:/app/logs tgbot-verify
/start # Start (register)
/about # Learn about bot features
/balance # Check points balance
/qd # Daily check-in (+1 point)
/invite # Generate invitation link (+2 points/person)
/use <code> # Redeem points with code
/verify <link> # Gemini One Pro verification
/verify2 <link> # ChatGPT Teacher K12 verification
/verify3 <link> # Spotify Student verification
/verify4 <link> # Bolt.new Teacher verification
/verify5 <link> # YouTube Premium Student verification
/help # View help
/addbalance <user_id> <points> # Add user points
/block <user_id> # Block user
/white <user_id> # Unblock user
/blacklist # View blacklist
/genkey <code> <points> [times] [days] # Generate redemption code
/listkeys # View redemption codes
/broadcast <text> # Broadcast notification
verificationId)/verify3 https://services.sheerid.com/verify/xxx/?verificationId=yyytgbot-verify/
├── bot.py # Main bot program
├── config.py # Global configuration
├── database_mysql.py # MySQL database management
├── env.example # Environment variables template
├── requirements.txt # Python dependencies
├── Dockerfile # Docker configuration
├── docker-compose.yml # Docker Compose configuration
├── handlers/ # Command handlers
│ ├── user_commands.py
│ ├── admin_commands.py
│ └── verify_commands.py
├── one/ # Gemini One Pro module
├── k12/ # ChatGPT K12 module
├── spotify/ # Spotify Student module
├── youtube/ # YouTube Premium module
├── Boltnew/ # Bolt.new module
├── military/ # ChatGPT Military verification docs
└── utils/ # Utility functions
├── messages.py
├── concurrency.py
└── checks.py
| Variable | Required | Description |
|---|---|---|
BOT_TOKEN |
✅ | Telegram Bot Token |
ADMIN_USER_ID |
✅ | Admin Telegram ID |
MYSQL_HOST |
✅ | MySQL host address |
MYSQL_USER |
✅ | MySQL username |
MYSQL_PASSWORD |
✅ | MySQL password |
MYSQL_DATABASE |
✅ | Database name |
CHANNEL_USERNAME |
❌ | Channel username (default: pk_oa) |
CHANNEL_URL |
❌ | Channel link |
MYSQL_PORT |
❌ | MySQL port (default: 3306) |
If verification keeps failing, the programId is likely outdated. To update:
https://services.sheerid.com/rest/v2/verification/ requestprogramId and update the corresponding module's config.pyFiles to update: one/config.py | k12/config.py | spotify/config.py | youtube/config.py | Boltnew/config.py
VERIFY_COST = 1 # Points cost per verification
CHECKIN_REWARD = 1 # Daily check-in reward
INVITE_REWARD = 2 # Invitation reward
REGISTER_REWARD = 1 # Registration reward
Open to collaboration — feel free to reach out via the above channels.
Welcome to fork and build upon this project. Please:
This project is licensed under the MIT License.
⭐ If this project helps you, please give it a Star!
Made with ❤️ by PastKing
$ claude mcp add tgbot-verify \
-- python -m otcore.mcp_server <graph>