修复同意群聊请求出错

This commit is contained in:
MobiusT 2023-02-26 20:28:10 +08:00
parent a63fda8a0d
commit 5a9beb2e5c

View File

@ -110,7 +110,7 @@ async def _(
rid = requests_manager.get_group_id(id_)
if rid:
if group := await GroupInfo.filter(group_id=rid).first():
await group.update_or_create(group_flag=1)
await group.update_or_create(group_id=rid, defaults={"group_flag": 1})
else:
group_info = await bot.get_group_info(group_id=rid)
await GroupInfo.create(