From 0c46b653ecadab33155b15aef3f5c4c24b738784 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 12 May 2021 08:31:08 +0200 Subject: [PATCH] Remove unneeded check --- pyrogram/methods/messages/send_media_group.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/methods/messages/send_media_group.py b/pyrogram/methods/messages/send_media_group.py index eb1660ec..d591c99b 100644 --- a/pyrogram/methods/messages/send_media_group.py +++ b/pyrogram/methods/messages/send_media_group.py @@ -265,7 +265,7 @@ class SendMediaGroup(Scaffold): raw.types.InputSingleMedia( media=media, random_id=self.rnd_id(), - **await self.parser.parse(i.caption or "", i.parse_mode) + **await self.parser.parse(i.caption, i.parse_mode) ) )