mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 20:59:29 +00:00
Minor style fixes
This commit is contained in:
parent
1c4047f2c6
commit
ff915965f1
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user