fix: image num

This commit is contained in:
zhayujie
2024-01-25 18:00:02 +08:00
parent 0403ff88ef
commit 1e0822703a

View File

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