diff --git a/mastoposter/integrations/telegram.py b/mastoposter/integrations/telegram.py index d1355f8..eb6acab 100644 --- a/mastoposter/integrations/telegram.py +++ b/mastoposter/integrations/telegram.py @@ -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