From 69e5e1b208f14b26f804c6ad4087add12dbc2497 Mon Sep 17 00:00:00 2001 From: Stan James Date: Mon, 5 Feb 2018 20:11:17 -0700 Subject: [PATCH] Fixed call to add_usesr to be class-aware --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 87a6860..a79a199 100644 --- a/bot.py +++ b/bot.py @@ -89,7 +89,7 @@ class TelegramMonitorBot: if self.id_exists(user.id): self.log_message(user.id, update.message.text) else: - add_user_success = add_user(user.id, user.first_name, user.last_name, user.username) + add_user_success = self.add_user(user.id, user.first_name, user.last_name, user.username) if add_user_success: self.log_message(user.id, update.message.text)