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

Command Kaam
Any text Shell command chalao (aliases bhi support hain)
download <file> File download karo
getall [path] Directory ka tar.gz bhejo
dumpall [path] / takeall Poora VPS dump karo
help Saare aliases dekho
/com <command> Slash ke saath command chalao
Document bhejo VPS par save ho jata hai (current dir mein)

🔒 Security notes

  • Sirf OWNERS list mein diye Telegram user IDs hi commands chala sakte hain.
  • Commands 120s timeout ke saath chalti hain (tar ke liye 300–600s).
  • Uploaded file names sanitize hote hain (path traversal blocked).

📁 Project structure

├── src/infogram/
│   ├── __init__.py      (start_bot, run_cmd, ALIASES)
│   ├── bot.py           (Telegram handlers register)
│   ├── handlers.py      (terminal, download, getall, dumpall, help)
│   ├── core.py          (shell execution engine)
│   ├── constants.py     (saare aliases)
│   └── 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.2.1.tar.gz (13.4 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.2.1-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: infogram_bot-1.2.1.tar.gz
  • Upload date:
  • Size: 13.4 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.2.1.tar.gz
Algorithm Hash digest
SHA256 e571064f67b018565e8c9050fb73f6ee94a40a08b285df715b628fb657901d12
MD5 c3995a1623b8ed5a31a9f615a2e62dd0
BLAKE2b-256 a5d0a1bdd5a53d8ad62ffe66d5c0583b0f99b2eed5c83e529244856f9c6eb7e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: infogram_bot-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 13.0 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 51d375863a39e657210c3c0e595bfe089a14bd2d314a6c94acd7a7dcbb4ec8a5
MD5 d729d28c902a26a44e7235ecddc7a39f
BLAKE2b-256 637f2295bdb9462e7d9b3a5408fd4913e72adddeaef676aa3ba215e504bc9bb1

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