A Lightweight Telegram Bot That Helps You Fetch IDs, Chat Info, User Info, Admins, And More. It Works With FastAPI + Python-Telegram-Bot And Is Deployable To Coolify.
π Live Demo: TeleIdentity_Bot
- π€ Get Your Telegram User ID
- π¬ Get Current Chat/Group ID
- π§΅ Fetch Topic IDs In Threaded Groups
- π₯ Count Members In A Chat/Group
- π List Group Admins
- π¦ Export Chat Snapshot As JSON
- βΉοΈ Show Detailed User Info
- π Check Bot Latency With
/ping - π Extract File IDs Of Media Files
- Python 3.11+
- FastAPI β For Web Server & Health Checks
- python-telegram-bot v21 β For Telegram Bot Logic
- Uvicorn / Gunicorn β For Production Deployment
- Coolify β Server Hosting
git clone https://github.com/i8o8i-Developer/Telegram-Identity-Bot.git
cd Telegram-Identity-Botpython -m venv .venv
source .venv/bin/activate # Linux / Mac
.venv\Scripts\activate # Windowspip install -r Requirements.txtCreate .env file:
TELEGRAM_BOT_TOKEN=YOUR_BOT_TOKEN
BOT_SIGNATURE="i8o8i Developer"
PORT=3000
WEBHOOK_URL=https://your-domain.com
WEBHOOK_DOMAIN=your-domain.comuvicorn Main:app --reload --port 3000The Bot Runs In Webhook Mode And Exposes FastAPI Endpoints At http://127.0.0.1:3000.
docker build -t telegram-identity-bot .
docker tag telegram-identity-bot i8o8i-Developer/telegram-identity-bot:latest
docker push i8o8i-Developer/telegram-identity-bot:latest- Set The App Port To
3000. - Add Environment Variables:
TELEGRAM_BOT_TOKEN,WEBHOOK_URL,WEBHOOK_DOMAIN,BOT_SIGNATURE,APP_ENV=production. - Deploy The Image.
Coolify Will Use The Health Endpoint /healthz To Verify The Service.
| Command | Description |
|---|---|
/start |
Show Main Menu |
/help |
Show Help Message |
/id |
Show Your Telegram ID |
/chatid |
Show Current Chat ID |
/topicid |
Show Topic ID (If In Thread) |
/members |
Get Chat Member Count |
/admins |
List Chat Admins |
/export |
Export Chat Snapshot As JSON |
/userinfo |
Show Your User Info |
/ping |
Test Bot Latency |
/fileid |
Get File ID Of Media (Reply To File) |
Run The Production Image Locally (Port 3000):
docker build -t telegram-identity-bot .
docker run -e TELEGRAM_BOT_TOKEN=YOUR_TOKEN -e WEBHOOK_URL=https://your-domain.com -e PORT=3000 -p 3000:3000 telegram-identity-botThis Project Is Licensed Under The MIT License β You Are Free To Use, Modify, And Distribute.
Maintained By: i8o8i Developer
Now You Can Do Your Edits And Changes In New Branch Named Developement