J-Rios / TLG_JoinCaptchaBot

Telegram Bot to verify if users joining a group are human. The Bot sends an image captcha for each new user and kicks any of them who can't solve the captcha in a specified time.
GNU General Public License v3.0
520 stars 217 forks source link

Ignore list feature #32

Closed ghost closed 4 years ago

ghost commented 4 years ago

In my chat a user likes to join the chat every time he posts something and instantly quit. For that I've added Ignore_List feature.

Now every configs.json includes one new parameter "Ignore_List" which is a list of user IDs.

There are 3 new commands: /add_ignore, /remove_ignore and /ignore_list.

When an ignored user enters the chat, the bot ignores the user and prints User is in ignore list. Skipping the captcha process. in the console.