https://github.com/poolitzer/joinrequestchatbot
Bot to handle join request in an anonymized chat
https://github.com/poolitzer/joinrequestchatbot
python-telegram-bot telegram
Last synced: 6 months ago
JSON representation
Bot to handle join request in an anonymized chat
- Host: GitHub
- URL: https://github.com/poolitzer/joinrequestchatbot
- Owner: Poolitzer
- License: gpl-3.0
- Created: 2022-08-30T15:10:48.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-23T19:07:07.000Z (about 2 years ago)
- Last Synced: 2025-04-11T16:24:35.159Z (9 months ago)
- Topics: python-telegram-bot, telegram
- Language: Python
- Homepage:
- Size: 45.9 KB
- Stars: 14
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JoinRequestChatBot
This is a small bot which forwards all chats from people trying to join your group to a second group (probably consistent of your admins), and all messages from that second group back to the proper private chat.
There will be three buttons below all the messages belonging to an applying user: ✅, ❌ and 🛑. ✅ approves the join request, ❌ declines, and 🛑 bans the users (forever), so they can't reapply to join the group.
Every message is supported, a wanting-to-join user message will reply to the last one in chat, so you can mute the second chat and won't miss a follow-up to your conversation.
You can send a reply with a !, the bot ignores these messages.
Also features a 24 hour timer after the last send message, after which the wanting-to-join users join request is rejected.
Add the bot with add member + ban users right in the main group. Set the `mainchat` variable on line 38 to your main chat id, the `joinrequestchat` to the one you want to handle the join requests in, the `devchat` to the chat you want to receive errors in. Oh, and don't forget to add your token in line 223.