{"id":17279289,"url":"https://github.com/rongronggg9/comments-helper-bot","last_synced_at":"2025-08-20T06:43:56.873Z","repository":{"id":45545897,"uuid":"389169272","full_name":"Rongronggg9/comments-helper-bot","owner":"Rongronggg9","description":"Telegram channel comments helper bot - auto kick-out and poll","archived":false,"fork":false,"pushed_at":"2023-03-31T15:30:18.000Z","size":105,"stargazers_count":9,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-19T06:50:27.458Z","etag":null,"topics":["bot","polls","telegram-bot"],"latest_commit_sha":null,"homepage":"https://t.me/comments_helper_bot","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rongronggg9.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"github":"Rongronggg9","patreon":"rongbot","open_collective":null,"ko_fi":"rongbot","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://afdian.net/@RongrongQAQ"}},"created_at":"2021-07-24T18:11:48.000Z","updated_at":"2024-07-31T03:37:57.000Z","dependencies_parsed_at":"2025-04-14T09:38:26.353Z","dependency_job_id":"a9cf1185-aeac-434d-9ee0-5421e88da0f5","html_url":"https://github.com/Rongronggg9/comments-helper-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Rongronggg9/comments-helper-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rongronggg9%2Fcomments-helper-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rongronggg9%2Fcomments-helper-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rongronggg9%2Fcomments-helper-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rongronggg9%2Fcomments-helper-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rongronggg9","download_url":"https://codeload.github.com/Rongronggg9/comments-helper-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rongronggg9%2Fcomments-helper-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271279776,"owners_count":24731902,"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-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["bot","polls","telegram-bot"],"created_at":"2024-10-15T09:16:48.562Z","updated_at":"2025-08-20T06:43:56.795Z","avatar_url":"https://github.com/Rongronggg9.png","language":"Python","funding_links":["https://github.com/sponsors/Rongronggg9","https://patreon.com/rongbot","https://ko-fi.com/rongbot","https://afdian.net/@RongrongQAQ"],"categories":[],"sub_categories":[],"readme":"# Telegram Channel Comments Helper\n\n[@comments_helper_bot](https://t.me/comments_helper_bot)\n\n## Features\n\n* Auto attach a poll to each channel message in discussion group\n    * Even if the message is a media group, would not send duplicated polls like similar bots\n    * Polls can be customized\n* Auto remove any user (and ban for 60s) attempting to join the discussion group\n    * Only if granted \"Ban user\" permission\n\n## Usage\n\n* Add [@comments_helper_bot](https://t.me/comments_helper_bot) to the **discussion group** of a channel\n* Grant `Ban users` permission if needed\n* `/set_poll` to set customized polls\n* `/force_poll` to manually attach a poll to a message\n\n## Deployment\n\n### AWS Lambda\n\n1. Clone\n    ```sh\n    git clone https://github.com/Rongronggg9/comments-helper-bot\n    cd comments-helper-bot\n    ```\n1. Install dependencies\n    ```sh\n    npm install serverless -g\n    npm install\n    ```\n1. [Get an AWS Access Key and configure it locally](https://www.serverless.com/framework/docs/providers/aws/guide/credentials/)\n1. Create `serverless.env.yml`\n    ```yaml\n    TOKEN: \u003cyour token\u003e\n    REDIS_HOST: \u003cyour redis host\u003e # optional, customized poll will be enabled if set\n    REDIS_PORT: \u003credis port\u003e # optional\n    REDIS_PASSWORD: \u003credis password\u003e # optional\n    ```\n\n1. Deploy\n    ```sh\n    serverless deploy --region \u003cAWS region\u003e\n    ```\n1. Activate Webhook\n    * GET or POST the `set_webhook` endpoint. It should be like:\n    ```\n    https://\u003cdepends-on-your-deployment\u003e.amazonaws.com/set_webhook\n    ```\n\n### Docker\n_not tested_\n\nFor the docker image go to: https://hub.docker.com/r/rongronggg9/comments-helper-bot\n\n```sh\ndocker run \\\n --restart unless-stopped \\\n -e TOKEN=\u003cbot token\u003e \\\n -e T_PROXY=\u003cscheme://host:port/\u003e \\\n -e REDIS_HOST=\u003credis host\u003e \\\n -e REDIS_PORT=\u003credis port\u003e \\\n -e REDIS_PASSWORD=\u003credis password\u003e\n rongronggg9/comments-helper-bot\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frongronggg9%2Fcomments-helper-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frongronggg9%2Fcomments-helper-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frongronggg9%2Fcomments-helper-bot/lists"}