Skip to content

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

License

Notifications You must be signed in to change notification settings

i8o8i-Developer/Telegram-Identity-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

40 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
  • πŸ’¬ 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

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=3000
WEBHOOK_URL=https://your-domain.com
WEBHOOK_DOMAIN=your-domain.com

5. RunLocally

uvicorn Main:app --reload --port 3000

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

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 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.

Available Commands

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)

DockerUsage

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-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

No packages published