From d0c9c6c377e950d0f5d8074465ead8591ee7f2f0 Mon Sep 17 00:00:00 2001 From: Oleg A Date: Fri, 13 Nov 2020 18:29:00 +0300 Subject: [PATCH] #463 style fix --- aiogram/types/input_media.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aiogram/types/input_media.py b/aiogram/types/input_media.py index 2c782af5..e60913ff 100644 --- a/aiogram/types/input_media.py +++ b/aiogram/types/input_media.py @@ -282,8 +282,8 @@ class MediaGroup(base.TelegramObject): elif not isinstance(media, InputMedia): raise TypeError(f"Media must be an instance of InputMedia or dict, not {type(media).__name__}") - elif media.type in ('animation', ): - raise ValueError(f"This type of media is not supported by media groups!") + elif media.type == 'animation': + raise ValueError("This type of media is not supported by media groups!") self.media.append(media)