Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-24T09:50:35.000Z (almost 2 years ago)
- Last Synced: 2023-03-03T20:13:10.745Z (over 1 year ago)
- Topics: bot, polls, telegram-bot
- Language: Python
- Homepage: https://t.me/comments_helper_bot
- Size: 102 KB
- Stars: 9
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
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
```