修正图片判断条件

This commit is contained in:
zhbaor 2023-08-13 19:50:02 +08:00
parent 65027933f7
commit efa1b3bd3d

View file

@ -5,7 +5,7 @@ import os
class RIICReportAnalysis:
async def group_message(self, chain: MessageChain):
if len(chain) != 1:
if len(chain) != 1 or len(chain.images) != 1:
return
img_seg: Image = chain[0]
img_path = await img_seg.download()