diff --git a/database.py b/database.py index 0003754..f10687f 100644 --- a/database.py +++ b/database.py @@ -13,7 +13,7 @@ class Database(): self.conn.commit() return self.cur.lastrowid - def get_user(self, telegram_id: str) -> int | None: + def find_user(self, telegram_id: str) -> int | None: self.cur.execute('SELECT id FROM users WHERE telegram_id = :telegram_id', {'telegram_id': telegram_id}) user_id = self.cur.fetchone() if user_id is None: