mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +00:00
Minor style fixes
This commit is contained in:
parent
1c4047f2c6
commit
ff915965f1
1 changed files with 7 additions and 4 deletions
|
|
@ -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…
Reference in a new issue