Minor style fixes

This commit is contained in:
Dan 2018-06-21 15:33:30 +02:00 committed by GitHub
parent 1c4047f2c6
commit ff915965f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)