Simple bot that deletes t.me links from the channel posts.
NODE_ENV=production BOT_TOKEN= PORT= node index.js
It will be listening on:
http://<domain>:<PORT>/<BOT_TOKEN>
BOT_TOKEN=
SENTRY_DSN=
-
Ban Replication: The bot now supports replicating ban events across all managed channels upon receiving a ban command from an admin.
-
Thread-specific Link Control: Admins can allow or block links in specific threads.
This new feature allows admins to issue a ban command that will be replicated across all channels managed by the bot. The ban propagates through the channels automatically.
Admins can issue a ban command in the following format:
/ban <user_id>
Where <user_id> is the unique identifier of the user to be banned. The bot will confirm once the user has been banned from all managed channels.
Admins can control whether links are allowed in specific threads by using commands.
- Reply to any message in the thread where you want to allow links
- Send the command:
/allowLinks - The bot will confirm that links are now allowed in that thread
- Reply to any message in the thread where you want to block links
- Send the command:
/blockLinks - The bot will confirm that links are now blocked in that thread
Note: Only administrators can use these commands. The settings persist across bot restarts and are stored in the database.