Skip to content

Releases: anthonygozzini/telegram-gatekeeper-bot

v3.0.0 — configurable gatekeeper

Choose a tag to compare

@anthonygozzini anthonygozzini released this 15 Sep 13:36

One bot for any community, configured in config.toml instead of code:

  • questions of three types: a social profile link (X, Instagram, TikTok, YouTube, GitHub, LinkedIn — checked to be a real profile), yes/no that can be required, free text with a minimum length;
  • signals of fake or farmed accounts: no username, a username full of digits, names with words you choose, a profile already used by another applicant — a signal sends the request to a human, it never rejects on its own;
  • auto or manual mode, a re-apply cooldown, single-use invite links that can expire;
  • every request and decision stored in SQLite and posted to the admin group; joins and leaves of the private group logged to a channel (the separate logger from v2 is now built in).

./check runs 40 tests on the rules, the configuration, the storage and the Telegram calls. The flow has not yet been run against a live Telegram group.

v2.0.0 — automatic approval

Choose a tag to compare

@anthonygozzini anthonygozzini released this 15 Sep 12:22

Automatic approval with Twitter/X profile URL validation, and every decision logged to the admin group (January 2024). Adds a separate join/leave logger bot in log/.

Change from the original code: the logger now makes its database available to the message handler; before, the first join or leave raised a NameError.

v1.0.0 — manual review

Choose a tag to compare

@anthonygozzini anthonygozzini released this 15 Sep 12:22

Applicants answer a short questionnaire; admins approve or reject from the admin group; approved applicants get a one-time invite link. Originally written in December 2023.

Change from the original code: the callback pattern is now a raw string (avoids Python's invalid-escape warning).