Copyright-ProtectBot is a powerful Telegram bot designed to protect the copyright of media shared in groups by automatically deleting them after 1 hour. It also provides functionalities to enable or disable media deletion on a per-group basis and includes various commands for bot management and monitoring.
- Automatic Media Deletion: Deletes all media (photos, videos, animations, documents) in the group after 1 hour.
- Enable/Disable Media Deletion: Group admins can enable or disable the auto-deletion feature.
- Its Also Delete Edited Messages: Its make sure edited messages don't cause copyright strikes.
- Python 3.7+
- Telegram API ID & Hash and Bot Token
git clone https://github.com/Vishal-1756/Copyright-ProtectBot.git
cd Copyright-ProtectBot
Create a .env
file in the root directory and add the following:
API_ID=your_api_id
API_HASH=your_api_hash
BOT_TOKEN=your_bot_token
BOT_USERNAME=your_bot_username
pip install -r requirements.txt
python copyright.py
/ping
or/speed
: Check the bot's response time./start
or/help
: Display the bot's introduction message./anticopyright [enable|disable]
: Enable or disable the media deletion feature for a group (admin only)./stats
: Show the total number of groups, users, and other statistics./restart
: Restart the bot (developer only).
- Media Deletion: The bot tracks all media shared in a group and schedules their deletion after 1 hour.
- Group Management: Admins can use the
/anticopyright
command to enable or disable media deletion for their group. - Bot Monitoring: Developers can restart the bot or check its statistics using the provided commands.
Feel free to fork the repository, make improvements, and submit pull requests. Open issues if you encounter any bugs or have feature requests.