Skip to main content

Infogram

Telegram bot module for remote VPS shell access — ab module ka naam infogram hai.

  • Import name: infogram (Python mein: from infogram import start_bot)
  • PyPI distribution name: infogram-bot
  • CLI command: infogram --token ... --owner ...

⚠️ Important: PyPI par infogram naam kisi aur ka hai (infogr.am ka library), isliye pip install infogram aapka module nahi laga payega. Distribution ka naam infogram-bot rakha gaya hai taaki PyPI par publish ho sake.


📦 Install kaise karein

1) Local install (sabse simple — aapke VPS ke liye)

cd ~/telegram_bot_module        # jahan pyproject.toml hai
pip install --upgrade pip       # purana pip ho toh
pip install -e .                # editable install

2) Kisi bhi machine par — GitHub se (RECOMMENDED 🚀)

Project ko apne GitHub par push karo, phir koi bhi machine par:

pip install git+https://github.com/YOUR_GITHUB_USERNAME/infogram.git

Yeh PyPI ke bina kaam karta hai — GitHub se seedha install! Sirf Python 3.8+ chahiye.

3) PyPI se (sabse "official" tarika)

Pehle baar publish karne ke liye (sirf aapko karna padega):

cd ~/telegram_bot_module
pip install build twine
python -m build                                   # dist/ folder banega
python -m twine upload dist/*                     # PyPI credentials maangega

Uske baad duniya mein koi bhi:

pip install infogram-bot

GitHub username aur email pyproject.toml mein apne se replace karo pehle!


🚀 Bot chalao

Python script se:

from infogram import start_bot

TOKEN = "YOUR_BOT_TOKEN"
OWNERS = [123456789]  # Apna Telegram user ID integer mein daalo

start_bot(TOKEN, OWNERS)
python3 run_bot.py

Ya terminal se seedha (CLI):

infogram --token YOUR_BOT_TOKEN --owner 123456789

🎮 Telegram par commands (stealth mode)

Commands cryptic hain — group mein non-devs samajh na payein. Purane obvious names (help, pwd, take, get all, .sh...) block hain❌ Unknown command.

Command Kaam
Any text Shell command chalao (la/ll aliases support)
hm Saari commands ki list
wd / go <dir> / cl / wm pwd / cd / clear / whoami
dr / tr Folders / files list karo
tk <file> / tk a File / saari files download karo
tg Advanced full backup (clean + 50MB split zip)
x <path> File/folder delete karo
.pe Saare environment variables
.g <text> Files + env mein search
.p <file> / .e <file> Python / executable chalao
.s <command> Shell command (GC only, sabke liye)
Reply to file File VPS par save ho jati hai (current dir mein)

🔒 Security notes

  • .s ke alawa (GC-only) sirf OWNERS list mein diye Telegram user IDs hi commands chala sakte hain.
  • Plain commands 120s timeout, .s 15s, .p/.e 30s ke saath chalti hain.
  • Uploaded file names basename tak sanitize hote hain (path traversal blocked).
  • get all backup temp folder mein banta hai aur bhejne ke baad delete ho jata hai.

📁 Project structure

├── src/infogram/
│   ├── __init__.py      (start_bot, run_cmd, ALIASES, HELP_TEXT)
│   ├── bot.py           (Telegram handler register)
│   ├── handlers.py      (terminal handler — saare commands)
│   ├── core.py          (shell execution engine + split_zip_all)
│   ├── constants.py     (aliases + HELP_TEXT)
│   └── cli.py           (terminal CLI)
├── pyproject.toml       (packaging)
├── run_bot.py           (example runner)
└── README.md

🔧 Agar aapne pehle wale mybot commands VPS par chala diye hain

cd ~/telegram_bot_module
mv src/mybot src/infogram
sed -i 's/mybot/infogram/g' src/infogram/*.py

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

infogram_bot-1.6.1.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

infogram_bot-1.6.1-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file infogram_bot-1.6.1.tar.gz.

File metadata

  • Download URL: infogram_bot-1.6.1.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.4

File hashes

Hashes for infogram_bot-1.6.1.tar.gz
Algorithm Hash digest
SHA256 8894f10c2569d68fd44497d0085e8a4fb8271538ce71bf4cd079e053fbf35941
MD5 58bb5e81b6c024a2022a94357dee2766
BLAKE2b-256 da3eceb063e5f5b33667573e8a80f0b55e951ac469684da3e074205be4705ab6

See more details on using hashes here.

File details

Details for the file infogram_bot-1.6.1-py3-none-any.whl.

File metadata

  • Download URL: infogram_bot-1.6.1-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.4

File hashes

Hashes for infogram_bot-1.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 486c695e1901c69721ef6ee56d769342650d048fad6ed64b1149b935e5233200
MD5 a5bf3202638ec65e049c32e20dee7b1a
BLAKE2b-256 3f6f8da17a8e9b6abcac8eeb8e7f08b9df78e9458006431170a345fba2005428

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page