1 - Make a copy of sample.env and name it .env
:
cp sample.env .env
2 - Make a copy of database and name it database.sqlite3
:
cp database-sample.sqlite3 database.sqlite3
3 - Get an API_ID and API_HASH from telegram using this link.
4 - Create a Telegram bot using t.me/BotFather.
5 - Fill .env
file based on this help:
Env Key | Value |
---|---|
INSTAGRAM_PROXY_LINK | [Optional] HTTP proxy link |
INSTAGRAM_PROXY_USE | True / False |
TELEGRAM_BOT_USERNAME | Your telegram bot username |
TELEGRAM_BOT_TOKEN | Your telegram bot token |
TELEGRAM_SUDO_IDS | Comma-separated sudo IDs - See your ID |
TELEGRAM_LOG_CHANNEL | Your Telegram channel ID |
TELEGRAM_API_ID | Your Telegram api id |
TELEGRAM_API_HASH | Your Telegram api hash |
docker-compose up --build -d
- Install dependencies:
pip install -r requirements.txt
- Run
python main.py
This bot will only answer to TELEGRAM_SUDO_IDS
To interact with the bot, open a chat with you Telegram Bot and start chatting:
Command | Description | Examples |
---|---|---|
/inspectors | List of all inspectors | /inspectors |
/inspected_users | List of all inspected users | /inspected_users |
/add_inspector USER PASS [2FACode] | Add new inspector | /add_inspector user_name MyPaSs 123456 |
/relogin USER PASS [2FACode] | Force re-login to inspector | /relogin user_name MyPaSs 123456 |
/del_inspector | Delete an inspector | /del_inspector |
/inspect USERNAME | Add a user to inspect | /inspect user_name |
/prune | Cleanup database from orphan inspected users and their follower/following list | /prune |
➖➖➖➖