Archived
1
0
Fork 0

Add debug

This commit is contained in:
Dianliang233 2023-02-07 10:21:29 +08:00
parent 74b2a29be8
commit 553ca15f22

View file

@ -8,6 +8,7 @@ s = on_command('summary', developers=['Dianliang233'], desc='生成聊天记录
@s.handle()
async def _(msg: Bot.MessageSession):
f_msg = await msg.waitNextMessage('请发送要生成摘要的合并转发消息。')
await msg.sendMessage(f_msg.asDisplay())
data = await f_msg.call_api('get_forward_msg', msg_id=re.search(r'\[Ke:forward,id=(.*?)\]', f_msg.asDisplay()).group(1))
msgs = data['data']['messages']
text = ''