Skip to content

Qwerty-Space/AntiDeletedAccountsBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AntiDeletedAccountsBot (ADAB)

Automatically kick deleted accounts

Based on uniborg, a pluggable asyncio Telegram userbot based on Telethon.

Installation

  1. Clone the AntiDeletedAccounts Bot branch of Uniborg
git clone --single-branch --branch antideletedaccounts https://github.com/Qwerty-Space/uniborg.git AntiDeletedAccountsBot
  1. Add your config into config.py, following the instructions in config.example.py
id = 12345  # Your API ID
hash = "11223344556677889900AABBCCDDEEFF"  # API Hash
admins = 12346789  # Any "admins" for the bot that will be able to reload the plugins
  1. Run python stdbot.py

FAQ

  1. A user deleted their account, why hasn't the bot kicked them yet?
  • ADAB only checks for deleted accounts ONCE every 6 hours at most. And it will only check for deleted accounts if a message was sent to the group. This behaviour will keep the bot from slowing down too much by filtering out inactive groups.
  1. Does ADAB kick or ban deleted accounts?
  • ADAB kicks deleted accounts (ban + unban).
  1. Does ADAB work in channels?
  • Yes. It doesn't matter what permission you give it in broadcast channels, all channel admins have the permission to kick/ban.
  1. How do I run it persistently, or in the background?
  • Use something like tmux: tmux new -ds AntiDeletedAccountsBot "python3 stdbot.py"

See running example on Telegram @AntiDeletedAccounts_Bot

Releases

No releases published

Packages

No packages published

Languages