{"id":16194277,"url":"https://github.com/dracarys18/grpmr-rs","last_synced_at":"2025-03-19T04:30:44.389Z","repository":{"id":127941746,"uuid":"376093860","full_name":"dracarys18/grpmr-rs","owner":"dracarys18","description":"Modular Telegram Group Manager Bot written in Rust ","archived":false,"fork":false,"pushed_at":"2022-01-13T15:23:02.000Z","size":384,"stargazers_count":23,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T03:34:25.171Z","etag":null,"topics":["rust","telegram","telegram-bot","teloxide"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dracarys18.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-11T17:13:06.000Z","updated_at":"2025-02-19T15:53:47.000Z","dependencies_parsed_at":"2023-07-08T09:35:34.198Z","dependency_job_id":null,"html_url":"https://github.com/dracarys18/grpmr-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dracarys18%2Fgrpmr-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dracarys18%2Fgrpmr-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dracarys18%2Fgrpmr-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dracarys18%2Fgrpmr-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dracarys18","download_url":"https://codeload.github.com/dracarys18/grpmr-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244357395,"owners_count":20440319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rust","telegram","telegram-bot","teloxide"],"created_at":"2024-10-10T08:18:38.644Z","updated_at":"2025-03-19T04:30:44.383Z","avatar_url":"https://github.com/dracarys18.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eTgBot-RS\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003e\n\u003ca href=\"https://github.com/dracarys18/grpmr-rs/actions\"\u003e\u003cimg src=\"https://github.com/dracarys18/grpmr-rs/actions/workflows/rust.yml/badge.svg?branch=master\" width=100\u003e\u003c/a\u003e\n\u003c/div\u003e\n\u003cp\u003eThis is a Telegram group manager bot written in rust. Some of the available features in this bot are:\u003c/p\u003e\n\u003cp\u003e\n\u003ch3\u003eAdmin\u003c/h3\u003e\n\u003cli\u003e\n\u003ccode\u003eBanning:\u003c/code\u003e These commands ban/unban a user from a chat.\n\u003c/li\u003e\n\u003cli\u003e\n\u003ccode\u003eUser Restriction:\u003c/code\u003e This command will mute/unmute a user from a particular chat. \n\u003c/li\u003e\n\u003cli\u003e\n\u003ccode\u003eWarning:\u003c/code\u003e 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.\n\u003c/li\u003e\n\u003cli\u003e\n\u003ccode\u003eKicking:\u003c/code\u003e Kicks a particular user from a chat.\n\u003c/li\u003e\n\u003cli\u003e\n\u003ccode\u003ePinning:\u003c/code\u003e Pins/Unpins the message in a chat.\n\u003c/li\u003e\n\u003cli\u003e\n\u003ccode\u003ePromote:\u003c/code\u003e Promotes a user to admin/Demotes the user and removes his admin permissions.\n\u003c/li\u003e\n\u003cli\u003e\n\u003ccode\u003eChat Restriction:\u003c/code\u003eAdmins can restrict the whole chat from sending certain type of messages.\n\u003c/li\u003e\n\u003cp\u003e\n\u003ch3\u003e Chat Methods\u003c/h3\u003e\n\u003cli\u003e\n\u003ccode\u003eInvitelink:\u003c/code\u003e Sends the invitelink of the chat.\n\u003c/li\u003e\n\u003cli\u003e\n\u003ccode\u003eDisabling\u003c/code\u003e Disables the use of a command in a group.\n\u003c/li\u003e\n\u003cli\u003e\n\u003ccode\u003eFilter:\u003c/code\u003e Enables a trigger on \u003ccode\u003ekeyword\u003c/code\u003e and replies with \u003ccode\u003ereply\u003c/code\u003e whenever it matches with keyword. All \u003ccode\u003edocument,stickers,audio,video,photo\u003c/code\u003e can be used as a trigger replies.\n\u003c/li\u003e\n\u003cli\u003e\n\u003ccode\u003eBlacklist:\u003c/code\u003e 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 \u003ccode\u003eWarn , Ban , Kick , Delete\u003c/code\u003e\n\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eChat Settings:\u003c/code\u003e You can set chat title, chat picture directly from the bot\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eLogging: \u003c/code\u003e 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.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003eReporting: \u003c/code\u003e 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.\u003c/li\u003e\n\u003c/p\u003e\n\u003cp\u003e\n\u003ch3\u003eUser Methods\u003c/h3\u003e\n\u003cli\u003e\n\u003ccode\u003eInfo:\u003c/code\u003e Gives info about a user Including his \u003ccode\u003efirst name,last name,user id,permanent url\u003c/code\u003e of the user\n\u003c/li\u003e\n\u003cli\u003e\n\u003ccode\u003eId:\u003c/code\u003e Gives user id if mentioned or just gives the id of the chat.\n\u003c/li\u003e\n\u003cli\u003e\n\u003ccode\u003eKickme:\u003c/code\u003e Kicks the user who sent the command from the group\n\u003c/li\u003e\n\u003c/p\u003e\n\u003cp\u003e\n\u003ch3\u003eSudo\u003c/h3\u003e\n\u003ccode\u003eGlobal Bans:\u003c/code\u003e Globally bans/unbans the user from the chats which are in common with the bot.\n\u003c/li\u003e\n\u003c/p\u003e\n\u003cp\u003e\n\u003ch3\u003eOther\u003c/h3\u003e\n\u003cli\u003e\n\u003ccode\u003eUrban Dictionary:\u003c/code\u003e Find the meaning of a word in urban dictionary.\n\u003c/li\u003e\n\u003cli\u003e\n\u003ccode\u003ePasteBin:\u003c/code\u003e Pastes the given text into \u003ca href='https://katb.in/'\u003eKatbin\u003c/a\u003e and sends the link of the paste.\n\u003c/li\u003e\n\u003c/p\u003e\n\u003c/p\u003e\n\n\u003ch1\u003eHow to Use?\u003c/h1\u003e\n\u003cp\u003eFirst off you would need to go to \u003ccode\u003e @Botfather\u003c/code\u003e in telegram and create a new bot and get the API token of the bot. And fill the  \u003ccode\u003eTELOXIDE_TOKEN\u003c/code\u003e in .env-example with the bot token. Fill \u003ccode\u003eOWNER_ID\u003c/code\u003e with your telegram user id and fill \u003ccode\u003eSUDO_USERS\u003c/code\u003e with the user id of your friends. Note that \u003ccode\u003eSUDO_USERS\u003c/code\u003e will have access to some of the admin commands in the groups which bot is in.\u003c/p\u003e\n\u003cp\u003e\nNow go to \u003ca href='https://www.mongodb.com/'\u003eMongoDB\u003c/a\u003e and create an instance and get the URI of your database. Paste the URI in \u003ccode\u003eMONGO_URI\u003c/code\u003e. Now rename \u003ccode\u003e.env-example\u003c/code\u003e to \u003ccode\u003e.env\u003c/code\u003e .\n\u003c/p\u003e\n\u003cp\u003e\nNow after all these are set-up to run the bot just execute\n\u003ccode\u003e\ncargo run\n\u003c/code\u003e\nfrom your terminal.\n\u003c/p\u003e\n\u003ch1\u003eCredits\u003c/h1\u003e\n\u003cli\u003e\n\u003ca href='https://github.com/teloxide/teloxide'\u003eteloxide\u003c/a\u003e : The telegram framework bot uses.\n\u003c/li\u003e\n\u003cli\u003e\n\u003ca href='https://github.com/PaulSonOfLars/tgbot'\u003eMarieBot\u003c/a\u003e : For the basic idea of the many of the features.\n\u003c/li\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdracarys18%2Fgrpmr-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdracarys18%2Fgrpmr-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdracarys18%2Fgrpmr-rs/lists"}