#463 removed document and audio from check

This commit is contained in:
Oleg A 2020-11-13 17:57:29 +03:00
parent cb6c084a24
commit 2e212546d3

View file

@ -282,7 +282,7 @@ 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 ('document', 'audio', 'animation'):
elif media.type in ('animation', ):
raise ValueError(f"This type of media is not supported by media groups!")
self.media.append(media)