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: