mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 12:51:18 +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),
|
has_viewers=getattr(storyviews, "has_viewers", None),
|
||||||
forwards_count=getattr(storyviews, "forwards_count", None),
|
forwards_count=getattr(storyviews, "forwards_count", None),
|
||||||
reactions=[
|
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,
|
] or None,
|
||||||
recent_viewers=getattr(storyviews, "recent_viewers", None)
|
recent_viewers=getattr(storyviews, "recent_viewers", None),
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user