Iiiii fucked up. Again.
This commit is contained in:
parent
80e845300f
commit
f3f7bff945
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue