https://github.com/rongronggg9/comments-helper-bot
Telegram channel comments helper bot - auto kick-out and poll
https://github.com/rongronggg9/comments-helper-bot
bot polls telegram-bot
Last synced: 10 months ago
JSON representation
Telegram channel comments helper bot - auto kick-out and poll
- Host: GitHub
- URL: https://github.com/rongronggg9/comments-helper-bot
- Owner: Rongronggg9
- License: agpl-3.0
- Created: 2021-07-24T18:11:48.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-31T15:30:18.000Z (about 3 years ago)
- Last Synced: 2025-08-19T06:50:27.458Z (10 months ago)
- Topics: bot, polls, telegram-bot
- Language: Python
- Homepage: https://t.me/comments_helper_bot
- Size: 103 KB
- Stars: 9
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Telegram Channel Comments Helper
[@comments_helper_bot](https://t.me/comments_helper_bot)
## Features
* Auto attach a poll to each channel message in discussion group
* Even if the message is a media group, would not send duplicated polls like similar bots
* Polls can be customized
* Auto remove any user (and ban for 60s) attempting to join the discussion group
* Only if granted "Ban user" permission
## Usage
* Add [@comments_helper_bot](https://t.me/comments_helper_bot) to the **discussion group** of a channel
* Grant `Ban users` permission if needed
* `/set_poll` to set customized polls
* `/force_poll` to manually attach a poll to a message
## Deployment
### AWS Lambda
1. Clone
```sh
git clone https://github.com/Rongronggg9/comments-helper-bot
cd comments-helper-bot
```
1. Install dependencies
```sh
npm install serverless -g
npm install
```
1. [Get an AWS Access Key and configure it locally](https://www.serverless.com/framework/docs/providers/aws/guide/credentials/)
1. Create `serverless.env.yml`
```yaml
TOKEN:
REDIS_HOST: # optional, customized poll will be enabled if set
REDIS_PORT: # optional
REDIS_PASSWORD: # optional
```
1. Deploy
```sh
serverless deploy --region
```
1. Activate Webhook
* GET or POST the `set_webhook` endpoint. It should be like:
```
https://.amazonaws.com/set_webhook
```
### Docker
_not tested_
For the docker image go to: https://hub.docker.com/r/rongronggg9/comments-helper-bot
```sh
docker run \
--restart unless-stopped \
-e TOKEN= \
-e T_PROXY= \
-e REDIS_HOST= \
-e REDIS_PORT= \
-e REDIS_PASSWORD=
rongronggg9/comments-helper-bot
```