mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 04:35:24 +00:00
Fix message.story parsing in some cases
This commit is contained in:
parent
da4b467e8f
commit
fccee4d643
@ -891,7 +891,7 @@ class Message(Object, Update):
|
||||
else:
|
||||
try:
|
||||
story = await client.get_stories(utils.get_peer_id(media.peer), media.id)
|
||||
except BotMethodInvalid:
|
||||
except (BotMethodInvalid, ChannelPrivate):
|
||||
story = await types.Story._parse(client, media, users, chats, media.peer)
|
||||
|
||||
media_type = enums.MessageMediaType.STORY
|
||||
|
Loading…
Reference in New Issue
Block a user