fix: image num limit

This commit is contained in:
zhayujie
2024-01-25 15:34:59 +08:00
parent 7729e66a96
commit 9e281d20ab
2 changed files with 5 additions and 1 deletions

View File

@@ -387,7 +387,11 @@ class LinkAIBot(Bot):
if not image_urls:
return
try:
i = 0
for url in image_urls:
if i >= 2:
continue
i += 1
if url.endswith(".mp4"):
reply_type = ReplyType.VIDEO_URL
elif url.endswith(".pdf") or url.endswith(".doc") or url.endswith(".docx"):