A Telegram bot to tag list of users. Official deploy: @matgbot
git clone git@github.com:redcodemohammed/mtagbot.git
cd matagbot
yarn
this will clone the repo and install all the dependencies.
Now create a nodemon.json file add add your token, mongodb url, port and Telegram id (get it from @myidbot)
it should look like this:
{
"env": {
"token": "",
"db": "",
"ownerId":"",
"PORT":""
}
}
Next start the bot using the dev
command:
yarn dev
Command | Role | Available at | Description |
---|---|---|---|
/groups |
Owner | Private | Show list of groups the bot has joined. |
/leave |
Owner | Private | Followed by group id, the bot will leave that group and delete it from the database. |
/spam |
Owner | Groups | Tag everyone in tag list multiple times. |
/adduser |
Admin | Groups | Add users to tag list. |
/removeuser |
Admin | Groups | Remove users from tag list. |
/clear |
Admin | Groups | Remove all users from tag list. |
/tag |
Everyone | Groups | Tag everyone in the tag list. You can also send @all. |
/list |
Everyone | Groups | List everyone in the tag list, without tagging them. |
/addme |
Everyone | Groups | Add you to the tag list. |
/removeme |
Everyone | Groups | Remove you from the tag list. |
Use this command to add new users to the tag list, by replying to their message or by adding their usernames after the command.
/adduser @redcode9000 @mohammed92001
Use this command to remove users from the tag list, by replying to their message or by adding their usernames after the command.
/removeuser @redcode9000 @mohammed92001
Use this command to tag users from the list n times.
/spam 4
Use this command to tag all the admins in the chat.