Skip to content

Commit

Permalink
fix chat not add to database
Browse files Browse the repository at this point in the history
  • Loading branch information
krau committed Oct 13, 2023
1 parent be2d872 commit 776f487
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kmua/common/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def message_recorder(update: Update, context: ContextTypes.DEFAULT_TYPE):
user = message.sender_chat
db_user = dao.add_user(user)
if chat.type == ChatType.GROUP or chat.type == ChatType.SUPERGROUP:
dao.add_chat(chat)
dao.add_association_in_chat(chat, db_user)


Expand Down

0 comments on commit 776f487

Please sign in to comment.