From 776f487cc27207eb526440c7b14e12f319804646 Mon Sep 17 00:00:00 2001 From: krau Date: Fri, 13 Oct 2023 15:12:06 +0800 Subject: [PATCH] fix chat not add to database --- kmua/common/message.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kmua/common/message.py b/kmua/common/message.py index 50a8c9c..0caffe3 100644 --- a/kmua/common/message.py +++ b/kmua/common/message.py @@ -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)