Fixed call to add_usesr to be class-aware
This commit is contained in:
parent
9409b4bfbe
commit
69e5e1b208
2
bot.py
2
bot.py
@ -89,7 +89,7 @@ class TelegramMonitorBot:
|
|||||||
if self.id_exists(user.id):
|
if self.id_exists(user.id):
|
||||||
self.log_message(user.id, update.message.text)
|
self.log_message(user.id, update.message.text)
|
||||||
else:
|
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:
|
if add_user_success:
|
||||||
self.log_message(user.id, update.message.text)
|
self.log_message(user.id, update.message.text)
|
||||||
|
Loading…
Reference in New Issue
Block a user