Skip to content

Commit

Permalink
patch: Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Simatwa committed May 4, 2024
1 parent 7a765ec commit 7e186c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pytgpt_bot/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7e186c1

Please sign in to comment.