mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
Minor style fixes
This commit is contained in:
parent
1c4047f2c6
commit
ff915965f1
@ -718,11 +718,14 @@ def parse_deleted_messages(
|
|||||||
parsed_messages = []
|
parsed_messages = []
|
||||||
|
|
||||||
for message in messages:
|
for message in messages:
|
||||||
m = pyrogram_types.Message(
|
parsed_messages.append(
|
||||||
message_id=message,
|
pyrogram_types.Message(
|
||||||
chat=(pyrogram_types.Chat(id=int("-100" + str(channel_id)), type="channel") if channel_id is not None else None)
|
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)
|
return pyrogram_types.Messages(len(parsed_messages), parsed_messages)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user