Simple Telegram selfbot that autoblocks everyone that is not in your Contacts.
This repository has been archived on 2026-07-08. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Python 91%
  • Dockerfile 9%
Find a file
2024-07-23 08:25:28 +03:00
Dockerfile add Dockerfile 2024-07-15 02:11:40 +03:00
LICENSE Initial commit 2024-07-15 01:49:09 +03:00
main.py Update main.py 2024-07-23 08:25:28 +03:00
README.md add Dockerfile 2024-07-15 02:11:40 +03:00
requirements.txt add Dockerfile 2024-07-15 02:11:40 +03:00

tg-autoblock-bot

Simple Telegram selfbot that autoblocks everyone that is not in your Contacts.

Setup

Requirements:

  • Python
  • Telethon (install by running pip install telethon)
  • Telegram API key (get it from my.telegram.org)

Edit api_id, api_hash and message. session_name can stay the same.

Run the bot;

# python main.py

It will ask for your credentials.

And that is it! You can also build the docker container and use that instead.