Iiiii fucked up. Again.

This commit is contained in:
Casey 2023-01-20 13:22:23 +03:00
parent 80e845300f
commit f3f7bff945
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 5 additions and 2 deletions

View File

@ -135,8 +135,11 @@ class TelegramIntegration(BaseIntegration):
chat_id=self.chat_id, chat_id=self.chat_id,
caption=text, caption=text,
**{MEDIA_MAPPING[media.type]: media.url}, **{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( async def _post_mediagroup(