mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 04:35:24 +00:00
Fix reaction parsing in StoryViews
This commit is contained in:
parent
3c57bda622
commit
a4abb95d1e
@ -68,7 +68,8 @@ class StoryViews(Object):
|
||||
has_viewers=getattr(storyviews, "has_viewers", None),
|
||||
forwards_count=getattr(storyviews, "forwards_count", None),
|
||||
reactions=[
|
||||
types.Reaction._parse_count(client, reaction) for reaction in storyviews.reactions
|
||||
types.Reaction._parse_count(client, reaction)
|
||||
for reaction in getattr(storyviews, "reactions", [])
|
||||
] or None,
|
||||
recent_viewers=getattr(storyviews, "recent_viewers", None)
|
||||
recent_viewers=getattr(storyviews, "recent_viewers", None),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user