1
0
Fork 0

Added media limit

This commit is contained in:
Casey 2023-05-13 21:47:40 +03:00
parent 9889ca251a
commit 18b47f6866
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ class TelegramIntegration(BaseIntegration):
)
continue
if attachment.type not in allowed_medias:
if attachment.type not in allowed_medias or len(media_list) >= 10:
unused.append(attachment)
continue