Skip to content

i8o8i-Developer/Telegram-Identity-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

41 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Telegram Identity Bot

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

Telegram Identity Bot - Telegram Identity & Chat Management Tool For Power Users | Product Hunt Telegram Identity Bot - Telegram Identity & Chat Management Tool For Power Users | Product Hunt

Features

  • πŸ‘€ Get Your Telegram User ID
  • ↩️ Extract User / Sender Chat IDs From Replied Messages
  • πŸ’¬ Get Current Chat/Group ID
  • 🏷️ Inspect Detailed Chat Metadata
  • 🧡 Fetch Topic IDs In Threaded Groups
  • 🧾 Show Message, Reply, And Topic IDs
  • πŸ‘₯ 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
  • 🌐 Inspect Registered Telegram Webhook At /webhook-info

TechStack

Installation

1. CloneRepository

git clone https://github.com/i8o8i-Developer/Telegram-Identity-Bot.git
cd Telegram-Identity-Bot

2. SetupVirtualEnvironment

python -m venv .venv
source .venv/bin/activate   # Linux / Mac
.venv\Scripts\activate      # Windows

3. InstallRequirements

pip install -r Requirements.txt

4. EnvironmentVariables

Create .env file:

TELEGRAM_BOT_TOKEN=YOUR_BOT_TOKEN
BOT_SIGNATURE="i8o8i Developer"
PORT=5860
WEBHOOK_URL=https://your-domain.com
WEBHOOK_DOMAIN=your-domain.com

5. RunLocally

uvicorn Main:app --reload --port 5860

The Bot Runs In Webhook Mode And Exposes FastAPI Endpoints At http://127.0.0.1:5860.

Deploy To Coolify

1. Build And Push Docker Image

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

2. Configure Coolify

  • Set The App Port To 5860.
  • 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. Use /webhook-info or /status after deploy to confirm Telegram is pointing at the expected webhook.

Available Commands

Command Description
/start Show Main Menu
/help Show Help Message
/id Show Your Telegram ID
/replyid Show ID Of Replied User Or Sender Chat
/chatid Show Current Chat ID
/chatinfo Show Detailed Chat Metadata
/topicid Show Topic ID (If In Thread)
/members Get Chat Member Count
/admins List Chat Admins
/messageid Show Current Message / Reply / Topic IDs
/export Export Chat Snapshot As JSON
/userinfo Show Your User Info
/ping Test Bot Latency
/fileid Get File ID Of Media (Reply To File)

DockerUsage

Run The Production Image Locally (Port 5860):

docker build -t telegram-identity-bot .
docker run -e TELEGRAM_BOT_TOKEN=YOUR_TOKEN -e WEBHOOK_URL=https://your-domain.com -e PORT=5860 -p 5860:5860 telegram-identity-bot

License

This 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

About

✨ Helps You To Find Your : Current Chat/Group/SuperGroup/Channel/File/{ Supergroup Topic } : ID & List Admins And Know Member Count + Check Bot Latency πŸ’š

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors