Bot Hooker is script made by DevAyu-Codes that can snatch user inputs and bot outputs even when the bot's api is being used by any other service or code from private telegram chat, it is basically designed to capture images and videos but can be modified for anything.
| Bot Chat | Group Forward |
|---|---|
![]() |
![]() |
git clone https://github.com/DevAyu-Codes/BotHooker.git
sudo pacman -Syu cloudflared
python3 -m venv .venv
source .venv/bin/activate
pip install flask requests urllib3
micro BotHooker/script/auto_proxy.pyadd your bot api in BOT_TOKENS list and change -10012345678 with your actual group id. You can also change WORKERS_PER_BOT according to your pc specs and preference. Save with ctrl+x, y and enter.
Note that you need to add the bots to the group and make them admins, the group can be public or private.
micro /etc/systemd/system/tg_logger.serviceand paste the code, change all username with your actual username:
[Unit]
Description=Telegram MITM Proxy Switchboard
# Wait until the internet is fully connected before starting
After=network-online.target
Wants=network-online.target
[Service]
User=USERNAME
WorkingDirectory=/home/ayuk/scripts
# The "-u" forces Python to print logs instantly to journalctl
ExecStart=/usr/bin/python3 -u /home/USERNAME/scripts/auto_proxy.py
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable tg_logger.service
sudo systemctl start tg_logger.serviceThis script is for education purpose only, I or nobody is responsible for stolen bot apis, data or misuse of service. Use at your own risk!

