From 7e186c154ab4bab5e9f6b8e657a2a5b8b0f051d5 Mon Sep 17 00:00:00 2001 From: Simatwa Date: Sat, 4 May 2024 12:19:36 +0300 Subject: [PATCH] patch: Minor fix --- pytgpt_bot/db.py | 1 + 1 file changed, 1 insertion(+) 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: