Pyrogram userbot for delay spam in multiple chats
Warning
Your Telegram account may get banned if this userbot is misused. We are not responsible for any spam, violations, or account restrictions.
Use it at your own risk and review the Telegram API Terms.
- Python 3.14+
- Linux (Debian/Ubuntu)
- Telegram
API_IDandAPI_HASHfrom API development tools
Follow these steps to set up and run DS on your system.
git clone https://github.com/kastaid/ds.git
cd dsGenerate STRING_SESSION by running python3 strgen.py, or directly:
python3 -c "import urllib.request as r;exec(r.urlopen('https://gist.githubusercontent.com/illvart/05a462d25ef1a99278201c5ee6b5ff14/raw').read())"or using Docker:
docker run --rm -it python:3.14-alpine python3 -c "import urllib.request as r;exec(r.urlopen('https://gist.githubusercontent.com/illvart/05a462d25ef1a99278201c5ee6b5ff14/raw').read())"Create a .env file in the main directory and fill it with the example from example.env.
Choose your preferred deployment method below.
Deploy using Docker Compose for easy containerized deployment.
git pull && \
docker compose up -d --build && \
docker compose logs -fRun DS locally on your machine or server (e.g., on Termux).
We recommend using uv for faster and more reliable Python package management.
Using uv:
uv pip install -r requirements.txt
python3 -m dsUsing pip:
pip3 install -r requirements.txt
python3 -m dsUsing uv:
uv pip install -r requirements.txt
uv pip install -r requirements-dev.txt
python3 -m run --watchUsing pip:
pip3 install -r requirements.txt
pip3 install -r requirements-dev.txt
python3 -m run --watchMore commands: run python3 -m run -h.
Once successfully deployed, test your DS by sending ping in any chat.
Usage:
ds [delay] [count] [forward/fwd (reply only)] [text/reply] [to=chat]
ds1 [delay] [count] [forward/fwd (reply only)] [text/reply] [to=chat]Examples:
ds 5 10 ok
ds1 9 5 coolYou can run up to 10 independent DS tasks (ds - ds9).
Send to a specific chat:
ds 5 10 ok to=@username
ds1 9 5 cool to=-1001234567890Reply to a message and use forward or fwd to forward it instead of copying:
ds 5 10 forward
ds 5 10 fwdCancel DS in a specific chat:
dscancel [to=chat]
ds1cancel [to=chat]Stop DS tasks in all chats:
dsstop
ds1stopStop and clear all DS tasks:
dsclearFor more details, see delayspam.py.
DS supports updating through Git:
git pullIf you updated from an older version and experience errors, fix your local repo with:
git fetch origin && git reset --hard origin/mainThis is NOT required for fresh installs.
If you’re enjoying it or want to support development, feel free to donate. Thank you! ❤️
Want to contribute? Read the Contributing.
Released under the MIT License.