reCAPTCHA bot for telegram
- Add bot to group
- Using an existing bot
@simple_reCAPTCHA_bot
(DC1) or@Simple_reCAPTCHA_2bot
(DC5) - Refer to deployment to deploy the bot yourself
- Using an existing bot
- Promote bot to administrator
- Delete messages (Used to delete join notification)
- Ban users (Used to restrict new members and kick out)
- Add users (Used to approve join requests)
- User join
- Bot mute new user
- Bot sends message for verification
- User clicks the button to open the verification page
- Verify via reCAPTCHA
- Bot unmute user or timeout kick user
- Bot delete verification message
- User send join request
- Bot send private message for verification
- User clicks the button to open the verification page
- Verify via reCAPTCHA
- Bot approve join request or timeout decline join request
- Bot delete verification message
Field | Description |
---|---|
api_base |
Telegram bot api base url, for local telegram bot server, leave empty to use default server. |
token |
Telegram bot api token. |
url |
The URL used to serve the verification page. |
bind |
The address the bot listens on, leave it empty to listen on all. |
port |
The port that the bot listens on. |
webhook |
Use webhooks instead of polling to receive Telegram updates. |
recaptcha |
reCAPTCHA keys. |
redis |
Use redis to store timeout data, leave it blank to use memory storage. |
timeout |
Verification timeout in seconds. |
- Use git or download the entire repo directly
- Copy
config_example.json
toconfig.json
and change the content. - Run
yarn node index.js
- Build or use an image from Docker Hub.
- Create
config.json
and fill the content. docker run --network host --restart unless-stopped -d -v config.json:/app/config.json -p <port> <image>