mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
#463 style fix
This commit is contained in:
parent
2e212546d3
commit
d0c9c6c377
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue