From f3f7bff945525e18e965755057887a55973cd48e Mon Sep 17 00:00:00 2001 From: hkc Date: Fri, 20 Jan 2023 13:22:23 +0300 Subject: [PATCH] Iiiii fucked up. Again. --- mastoposter/integrations/telegram.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mastoposter/integrations/telegram.py b/mastoposter/integrations/telegram.py index c680ec9..f1f8ea3 100644 --- a/mastoposter/integrations/telegram.py +++ b/mastoposter/integrations/telegram.py @@ -135,8 +135,11 @@ class TelegramIntegration(BaseIntegration): chat_id=self.chat_id, caption=text, **{MEDIA_MAPPING[media.type]: media.url}, - has_spoiler=MEDIA_SPOILER_SUPPORT.get(media.type, False) - and spoiler, + **( + {"has_spoiler": spoiler} + if MEDIA_SPOILER_SUPPORT.get(media.type, False) + else {} + ), ) async def _post_mediagroup(