From 32302f5c722f33f9121680b2d59b72c89094c0b5 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Mon, 15 Mar 2021 22:07:45 +0300 Subject: [PATCH] fix robot --- bots/modules/robot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bots/modules/robot.py b/bots/modules/robot.py index 1263c2f..8024395 100644 --- a/bots/modules/robot.py +++ b/bots/modules/robot.py @@ -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