This is a Telegram group manager bot written in rust. Some of the available features in this bot are:
Banning:
These commands ban/unban a user from a chat.
User Restriction:
This command will mute/unmute a user from a particular chat.
Warning:
Allows Admins to warn a user with a reason if the wanrs exceed the preset warn limit the user will be banned/kicked/muted based on warn settings.
Kicking:
Kicks a particular user from a chat.
Pinning:
Pins/Unpins the message in a chat.
Promote:
Promotes a user to admin/Demotes the user and removes his admin permissions.
Chat Restriction:
Admins can restrict the whole chat from sending certain type of messages.
Invitelink:
Sends the invitelink of the chat.
Disabling
Disables the use of a command in a group.
Filter:
Enables a trigger on keyword
and replies with reply
whenever it matches with keyword. All document,stickers,audio,video,photo
can be used as a trigger replies.
Blacklist:
You can set any words as "blacklist" in your group and let the bot deal with whoever sends the blacklisted words automatically. The modes which are available currently are Warn , Ban , Kick , Delete
Chat Settings:
You can set chat title, chat picture directly from the botLogging:
Recent actions are great but you can't see the changes that are older than 48 hours. So you can set-up a custom log channels to log the group properly and access it whenever you want.Reporting:
If you spot any suspicious activity in a group you can report that to admin by replying with /report it will send the report with the message that was reported to admins.
Info:
Gives info about a user Including his first name,last name,user id,permanent url
of the user
Id:
Gives user id if mentioned or just gives the id of the chat.
Kickme:
Kicks the user who sent the command from the group
Global Bans:
Globally bans/unbans the user from the chats which are in common with the bot.
Urban Dictionary:
Find the meaning of a word in urban dictionary.
PasteBin:
Pastes the given text into Katbin and sends the link of the paste.
First off you would need to go to @Botfather
in telegram and create a new bot and get the API token of the bot. And fill the TELOXIDE_TOKEN
in .env-example with the bot token. Fill OWNER_ID
with your telegram user id and fill SUDO_USERS
with the user id of your friends. Note that SUDO_USERS
will have access to some of the admin commands in the groups which bot is in.
Now go to MongoDB and create an instance and get the URI of your database. Paste the URI in MONGO_URI
. Now rename .env-example
to .env
.
Now after all these are set-up to run the bot just execute
cargo run
from your terminal.