From e5417170ebc2cd934aacd30a5cfa607518b65779 Mon Sep 17 00:00:00 2001 From: AlberLC Date: Mon, 13 Jun 2022 04:26:48 +0200 Subject: [PATCH] Fix send bytes to discord --- multibot/bots/discord_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multibot/bots/discord_bot.py b/multibot/bots/discord_bot.py index 55e5e6f..01355e5 100644 --- a/multibot/bots/discord_bot.py +++ b/multibot/bots/discord_bot.py @@ -208,7 +208,7 @@ async def _prepare_media_to_send(media: Media) -> discord.File | None: return discord.File(media.url) else: return discord.File(media.url, filename=f'bot_media.{media.type_.extension}') - else: + elif not media.bytes_: media.bytes_ = await flanautils.get_request(media.url) if bytes_ := media.bytes_: