Skip to content

Commit fbe0347

Browse files
authored
fix: use existing attribute in Dialog instance (#236)
1 parent 4c9a29c commit fbe0347

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyrogram/types/user_and_chats/dialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def _parse(client, dialog: "raw.types.Dialog", messages, users, chats) -> "Dialo
109109
unread_messages_count=dialog.unread_count,
110110
unread_mentions_count=dialog.unread_mentions_count,
111111
unread_reactions_count=dialog.unread_reactions_count,
112-
unread_poll_vote_count=dialog.unread_poll_vote_count,
112+
unread_poll_vote_count=dialog.unread_poll_votes_count,
113113
unread_mark=dialog.unread_mark,
114114
is_pinned=dialog.pinned,
115115
chat_list=getattr(dialog, "folder_id", None),

0 commit comments

Comments
 (0)