Skip to content
This repository was archived by the owner on Nov 21, 2024. It is now read-only.

Commit 509c96c

Browse files
committed
Fix AttributeError when attaching multiple media to a post.
1 parent 961448e commit 509c96c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/bot/types/album.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def as_media_group(self) -> List[InputMedia]:
5858
"""
5959
bot = cast(Bot, self.bot)
6060
group = [
61-
INPUT_TYPES[media_type](media=media.file_id, parse_mode=bot.parse_mode)
61+
INPUT_TYPES[media_type](media=media.file_id, parse_mode=bot.default.parse_mode)
6262
for media_type in self.media_types
6363
for media in getattr(self, media_type)
6464
]

0 commit comments

Comments
 (0)