fix: TypeError in deprecated to document

This commit is contained in:
xtaodada 2024-02-27 21:56:41 +08:00
parent 30c804f500
commit 5c737450cd
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -176,7 +176,7 @@ def deprecated_to_document(func):
try:
return await func(*args, **kwargs)
except (PhotoInvalidDimensions, ImageProcessFailed, PhotoSaveFileInvalid):
return await send_document(args[0], args[1], args[3], args[4], args[5])
return await send_document(args[0], args[1], args[2], args[3], args[4], args[5])
return wrapper