Skip to content

Commit

Permalink
Fix chat color parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
KurimuzonAkuma committed Dec 2, 2023
1 parent 97c9fa6 commit 476ee7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrogram/types/user_and_chats/chat_color.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ def _parse(color: "raw.types.PeerColor" = None, for_profile: bool = None) -> Opt
return None

return ChatColor(
color=enums.ProfileColor(color.color) if for_profile else enums.ReplyColor(color.color) if color else None,
color=enums.ProfileColor(color.color) if for_profile else enums.ReplyColor(color.color) if color.getattr(color, "color", None) else None,
background_emoji_id=getattr(color, "background_emoji_id", None)
)

0 comments on commit 476ee7d

Please sign in to comment.