From 13db08574fcb2cc0330377df9038a974d3d623e9 Mon Sep 17 00:00:00 2001 From: ennucore Date: Fri, 24 Jun 2022 18:24:20 +0300 Subject: [PATCH] Hotfix --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 0a2dc99..ec2ad35 100644 --- a/bot.py +++ b/bot.py @@ -210,7 +210,7 @@ class Bot(telebot.TeleBot): found_communities = False try: for community in self.iter_communities(): - if user.check_chat(community.chat_id, self): + if user.check_chat(community.chat_id, self) and user.user_id not in community.members: self.send_template(user.user_id, 'community_suggest', community=community) found_communities = True except KeyboardInterrupt as e: