forked from hkc/mastoposter
Added media limit
This commit is contained in:
parent
9889ca251a
commit
18b47f6866
|
@ -188,7 +188,7 @@ class TelegramIntegration(BaseIntegration):
|
||||||
)
|
)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if attachment.type not in allowed_medias:
|
if attachment.type not in allowed_medias or len(media_list) >= 10:
|
||||||
unused.append(attachment)
|
unused.append(attachment)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue