From 18b47f68661ade9e9a00a2b02cf76da02ad8d160 Mon Sep 17 00:00:00 2001 From: hkc Date: Sat, 13 May 2023 21:47:40 +0300 Subject: [PATCH] Added media limit --- mastoposter/integrations/telegram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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