{"id":14956751,"url":"https://github.com/ashokshau/force-sub-bot","last_synced_at":"2025-07-21T17:32:11.170Z","repository":{"id":249664412,"uuid":"831650359","full_name":"AshokShau/Force-Sub-Bot","owner":"AshokShau","description":"A Telegram Bot to force users to join a specific channel before sending messages in a group.","archived":false,"fork":false,"pushed_at":"2025-04-19T07:31:19.000Z","size":46,"stargazers_count":7,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-19T14:26:01.992Z","etag":null,"topics":["fast","force-sub-bot","force-subscribe","fsub","go","gobot","gotgbot","redis","telegram","telegram-bot","vercel","vercel-template"],"latest_commit_sha":null,"homepage":"https://FallenFSubBot.t.me","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AshokShau.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":"2024-07-21T07:57:58.000Z","updated_at":"2025-04-19T07:31:16.000Z","dependencies_parsed_at":"2024-07-28T07:44:02.153Z","dependency_job_id":"bff08f8f-82a9-4976-9f00-b990ad85ddbf","html_url":"https://github.com/AshokShau/Force-Sub-Bot","commit_stats":null,"previous_names":["abishnoi69/force-sub-bot","ashokshau/force-sub-bot"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/AshokShau/Force-Sub-Bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshokShau%2FForce-Sub-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshokShau%2FForce-Sub-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshokShau%2FForce-Sub-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshokShau%2FForce-Sub-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AshokShau","download_url":"https://codeload.github.com/AshokShau/Force-Sub-Bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AshokShau%2FForce-Sub-Bot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266342809,"owners_count":23914262,"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","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["fast","force-sub-bot","force-subscribe","fsub","go","gobot","gotgbot","redis","telegram","telegram-bot","vercel","vercel-template"],"created_at":"2024-09-24T13:13:26.419Z","updated_at":"2025-07-21T17:32:11.140Z","avatar_url":"https://github.com/AshokShau.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003chtml lang=\"en\"\u003e\n\u003cbody\u003e\n\n\u003ch1\u003eForce Sub Bot\u003c/h1\u003e\n\n\u003csection\u003e\n\u003cdiv align=\"center\"\u003e\n\u003ca href=\"https://github.com/Abishnoi69/Force-Sub-Bot/actions?query=workflow%3Abuild+event%3Apush+branch%3Amain\"\u003e\u003cimg src=\"https://github.com/Abishnoi69/Force-Sub-Bot/workflows/build/badge.svg\" alt=\"build\"\u003e\u003c/a\u003e\n\u003ca href=\"https://goreportcard.com/report/Abishnoi69/Force-Sub-Bot\"\u003e\u003cimg src=\"https://goreportcard.com/badge/Abishnoi69/Force-Sub-Bot\" alt=\"Go Report Card\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/Abishnoi69/Force-Sub-Bot/blob/main/go.mod\"\u003e\u003cimg src=\"https://img.shields.io/github/go-mod/go-version/Abishnoi69/Force-Sub-Bot?logo=go\" alt=\"Go Version\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\u003c/section\u003e\n\n\n\u003cp\u003eThis project includes a Telegram bot designed to enforce subscription to a specific channel before allowing users to interact in a group chat. It's built using \u003ca href=\"https://go.dev\"\u003eGo\u003c/a\u003e and integrates with the Telegram Bot API using \u003ca href=\"https://github.com/PaulSonOfLars/gotgbot\"\u003egotgbot\u003c/a\u003e.\u003c/p\u003e\n\n\u003csection\u003e\n\u003ch2\u003eInstallation Instructions\u003c/h2\u003e\n\u003ch3\u003eInstall Go\u003c/h3\u003e\n\u003col\u003e\n\n```shell\ngit clone https://github.com/udhos/update-golang dlgo \u0026\u0026 cd dlgo \u0026\u0026 sudo ./update-golang.sh \u0026\u0026 source /etc/profile.d/golang_path.sh\n```\n\n\u003cli\u003eExit and reopen your terminal, then verify the installation with \u003ccode\u003ego version\u003c/code\u003e.\u003c/li\u003e\n\u003c/ol\u003e\n\n\u003ch3\u003eSet Up the Project\u003c/h3\u003e\n\u003col\u003e\n\u003cli\u003eClone the repository:\n\u003cpre\u003e\u003ccode\u003egit clone https://github.com/Abishnoi69/Force-Sub-Bot fSub \u0026\u0026 cd fSub\u003c/code\u003e\u003c/pre\u003e\n\u003c/li\u003e\n\u003cli\u003ePrepare the environment file:\n\u003col\u003e\n\u003cli\u003eCopy the sample environment file: \u003ccode\u003ecp sample.env .env\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003eOpen env: \u003ccode\u003evi .env\u003c/code\u003e\u003c/li\u003e\n\n\u003cli\u003eEdit the \u003ccode\u003e.env\u003c/code\u003e file with your preferred editor. Instructions for editing in \u003ccode\u003evi\u003c/code\u003e:\n\u003cul\u003e\n\u003cli\u003ePress \u003ccode\u003eɪ\u003c/code\u003e to start editing.\u003c/li\u003e\n\u003cli\u003ePress \u003ccode\u003eCtrl + C\u003c/code\u003e once editing is complete, then type \u003ccode\u003e:wq\u003c/code\u003e to save and exit, or \u003ccode\u003e:qa\u003c/code\u003e to exit without saving.\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003c/li\u003e\n\u003cli\u003eStart a new \u003ccode\u003etmux\u003c/code\u003e session: \u003ccode\u003esudo apt install tmux \u0026\u0026 tmux\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003eRun the bot: \u003ccode\u003ego run .\u003c/code\u003e\u003c/li\u003e\n\u003c/ol\u003e\n\u003c/section\u003e\n\n\u003csection\u003e\n\u003ch2\u003eDeploy to Vercel\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eFork this repository 🍴\u003c/li\u003e\n\u003cli\u003eLogin your \u003ca href=\"https://vercel.com/\"\u003eVercel\u003c/a\u003e account \u003c/li\u003e\n\u003cli\u003eGo to your \u003ca href=\"https://vercel.com/new\"\u003eAdd New Project\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003eChoose the repository you forked\u003c/li\u003e\n\u003cli\u003eConfigure the environment variables: \u003ccode\u003eDB_URI\u003c/code\u003e \u003ca href=\"https://app.redislabs.com/\"\u003eRedis\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003eTap on Deploy\u003c/li\u003e\n\u003c/ol\u003e\n\u003c/section\u003e\n\n\u003csection\u003e\n\u003ch2\u003eUsage\u003c/h2\u003e\n\u003cp\u003eOnce the bot is running, it will enforce subscription to a specific channel before allowing users to interact in the group chat. Users not subscribed to the channel will be prompted to do so.\u003c/p\u003e\n\n\u003ch3\u003eCommands\u003c/h3\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ccode\u003e/start\u003c/code\u003e - Start the bot.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e/fsub\u003c/code\u003e - Set the channel for force subscription. Reply to a forwarded message from the channel you wish to set.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e/fsub on\u003c/code\u003e - Enable force subscription mode.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e/fsub off\u003c/code\u003e - Disable force subscription mode.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e/fsub\u003c/code\u003e - Get the current force subscription status.\u003c/li\u003e\n\n\u003ch4\u003eOwner Only Commands\u003c/h4\u003e\n\u003cli\u003e\u003ccode\u003e/getChats\u003c/code\u003e - Get all chats.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e/getUsers\u003c/code\u003e - Get all users who started in private.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e/getAllBots\u003c/code\u003e - Get all bots running on webhook.\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/section\u003e\n\n\u003csection\u003e\n\u003ch3\u003eLicense\u003c/h3\u003e\n\u003cp\u003eFeel free to visit \u003ca href=\"LICENSE\"\u003eLICENSE\u003c/a\u003e for more details.\u003c/p\u003e\n\u003c/section\u003e\n\n\u003csection\u003e\n\u003ch3\u003eContributing Guidelines\u003c/h3\u003e\n\u003cp\u003eContributions are welcome! For bug reports, feature requests, or pull requests, please open an issue or submit your changes directly.\u003c/p\u003e\n\u003c/section\u003e\n\n\u003csection\u003e\n\u003ch3\u003eSupport\u003c/h3\u003e\n\u003cp\u003eFor any questions or concerns, please contact me at \u003ca href=\"https://t.me/Abishnoi1M\"\u003eTelegram\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://t.me/FallenAssociation\"\u003eFallenAssociation\u003c/a\u003e\u003c/p\u003e\n\u003c/section\u003e\n\n\u003c/body\u003e\n\u003c/html\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashokshau%2Fforce-sub-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashokshau%2Fforce-sub-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashokshau%2Fforce-sub-bot/lists"}