diff --git a/pytgpt_bot/db.py b/pytgpt_bot/db.py index 57af712..ecfb2fe 100644 --- a/pytgpt_bot/db.py +++ b/pytgpt_bot/db.py @@ -25,6 +25,7 @@ def __init__(self, message: Message | CallbackQuery = None, user_id: int = None) else: self.chat = Chat(id=id) session.add(self.chat) + session.commit() # For the sake of async @property def is_admin(self) -> bool: