{"id":19295784,"url":"https://github.com/xditya/forcesub","last_synced_at":"2025-10-07T07:32:11.965Z","repository":{"id":39484899,"uuid":"356790461","full_name":"xditya/ForceSub","owner":"xditya","description":"Force Subscribe Bot.","archived":false,"fork":false,"pushed_at":"2023-09-16T11:39:17.000Z","size":23,"stargazers_count":60,"open_issues_count":4,"forks_count":124,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T21:12:49.801Z","etag":null,"topics":["forcesubscribe","fsub","telegram"],"latest_commit_sha":null,"homepage":"https://youtu.be/8JTWG6yFi-4","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xditya.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-04-11T06:51:47.000Z","updated_at":"2025-03-07T08:22:44.000Z","dependencies_parsed_at":"2024-11-09T22:44:36.357Z","dependency_job_id":"b30fd0de-22bf-41e0-9f5e-205936c0e463","html_url":"https://github.com/xditya/ForceSub","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/xditya%2FForceSub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xditya%2FForceSub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xditya%2FForceSub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xditya%2FForceSub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xditya","download_url":"https://codeload.github.com/xditya/ForceSub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250206049,"owners_count":21392174,"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":["forcesubscribe","fsub","telegram"],"created_at":"2024-11-09T22:44:26.041Z","updated_at":"2025-10-07T07:32:11.871Z","avatar_url":"https://github.com/xditya.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Force Subscribe Bot\nForces a user to join your group/channel so as to be able to message in a group.\n\n# Features\n- Checks for all newly joined members with a customisable welcome message.\n- Checks for users who are already in the group but has not joined the channel.\n\n# Variables\n- `BOT_TOKEN` - Your telegram bot token.\n- `CHANNEL` - Username of the channel/group where users must join.\n- `WELCOME_MSG` - The welcome message you want.\n`WELCOME_NOT_JOINED` - Welcome message to show if user is not in the channel.\n- `ON_JOIN` - True/False - Set as True if the user must be muted, if not in Channel/group, directly when he joins.\n- `ON_NEW_MSG` - True/False - Set as True if the user must be muted, if not in Channel/group, on sending a message.\n\nNote: `WELCOME_MSG` and `WELCOME_NOT_JOINED` can both be formatted using parameters like `{mention}`, `{title}`, `{fullname}`, `{username}`, `{name}`, `{last}`, `{channel}` and `{count}`\n\n# Deploy to heroku\n[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)\n\n# Deploy locally\nWatch the tutorial on deploying - https://youtu.be/8JTWG6yFi-4\n\n- `git clone https://github.com/xditya/ForceSub`\n- `cd ForceSub`\n- `pip3 install -U -r requirements.txt`\n- `touch .env`,  `nano .env` and fill in the [vars](.env.sample), Ctrl+S, Ctrl+X\n- Run the bot, `python3 bot.py`\n\n# Deploy docker\nImplemented by [ShadowHunterV](https://github.com/ShadowHunterV/)\n\n- `git clone https://github.com/xditya/ForceSub`\n- `cd ForceSub`\n- `touch .env`,  `nano .env` and fill in the [vars](.env.sample), Ctrl+S, Ctrl+X\n- Start Docker daemon (Skip If already running) `sudo dockerd`\n- Build Docker image `sudo docker build . -t forcesub`\n- Run the image `sudo docker run forcesub`\n- To stop the running image `sudo docker ps` Then `sudo docker stop` `CONTAINER ID`\n\n\n# Credits\n- [Telethon](https://github.com/LonamiWebs/Telethon)\n- [BotzHub](https://t.me/BotzHub)\n- [Me](https://xditya.me/tg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxditya%2Fforcesub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxditya%2Fforcesub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxditya%2Fforcesub/lists"}