Added media limit
This commit is contained in:
parent
9889ca251a
commit
18b47f6866
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue