fix robot

This commit is contained in:
bakatrouble 2021-03-15 22:07:45 +03:00
parent 6ca5ff666e
commit 32302f5c72

View File

@ -21,6 +21,8 @@ class RobotBotModuleConfig(TelegramBotModuleConfig):
return dispatcher
def save_file(self, update: Update, ctx: CallbackContext):
config._reload_maybe()
if self.users.count() and not self.users.filter(user_id=update.effective_user.id).count():
update.effective_message.reply_text('GTFO')
return