@ -52,7 +52,7 @@ class Bot:
def is_allowed(self, update, context):
if update.inline_query:
return update.effective_user.id in self.channels
return True
return update.effective_chat.id in self.channels
def start(self):