From ff915965f158025aa3aac5f34fb4ab62fa70977f Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Thu, 21 Jun 2018 15:33:30 +0200 Subject: [PATCH] Minor style fixes --- pyrogram/client/ext/utils.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pyrogram/client/ext/utils.py b/pyrogram/client/ext/utils.py index 6dda20b7..2913c38b 100644 --- a/pyrogram/client/ext/utils.py +++ b/pyrogram/client/ext/utils.py @@ -718,11 +718,14 @@ def parse_deleted_messages( parsed_messages = [] for message in messages: - m = pyrogram_types.Message( - message_id=message, - chat=(pyrogram_types.Chat(id=int("-100" + str(channel_id)), type="channel") if channel_id is not None else None) + parsed_messages.append( + pyrogram_types.Message( + message_id=message, + chat=(pyrogram_types.Chat(id=int("-100" + str(channel_id)), type="channel") + if channel_id is not None + else None) + ) ) - parsed_messages.append(m) return pyrogram_types.Messages(len(parsed_messages), parsed_messages)