Sign In

infogram-bot

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Malware was recently detected in this package.

Affected versions:

1.0.01.2.01.2.11.3.01.4.0
+6 more

infogram-bot

Telegram bot module for remote VPS shell access

pipPyPI
Version
1.9.0
Weekly downloads
749
131.89%
Maintainers
1
Weekly downloads
 
Created

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

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

CommandKaam
Any textShell command chalao (la/ll aliases support)
helpSaari commands ki list
pwd / cd <dir> / clear / whoamiBasic terminal
dirs / treeFolders / files list karo
take <file> / take allFile / saari files download karo
get allAdvanced full backup (clean + 50MB split zip, badi files .part001... parts)
rm -rf <path>File/folder delete karo
.printenvSaare environment variables
.grep [-i] <text>Files + env mein search
.py <file> / .exec <file>Python / executable chalao
.sh <command>Shell command (GC only, sabke liye)
Send file / reply to fileFile 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

Keywords

telegram

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts