Skip to content

Commit

Permalink
ruff-format
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akhmetov committed Jan 11, 2025
1 parent 86422bf commit 4e17e94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/clear_group_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def delete_messages(chat_id, message_ids):
BATCH = 20
num = len(message_ids)
for i in range(0, num, BATCH):
print(f".. Deleting {i}-{i+BATCH-1} / {num}...")
print(f".. Deleting {i}-{i + BATCH - 1} / {num}...")
r = tg.delete_messages(chat_id, message_ids[i : i + BATCH], revoke=True)
r.wait(raise_exc=True)

Expand Down Expand Up @@ -97,7 +97,7 @@ def delete_messages(chat_id, message_ids):
selected = int(input("Select a group to clear: ").strip())
chat_info = chat_map[selected]
print(f"You selected: {selected} {json.dumps(chat_info, indent=2)}")
print(f'Chat: {chat_info["title"]}')
print(f"Chat: {chat_info['title']}")

confirm("Are you sure?")

Expand Down

0 comments on commit 4e17e94

Please sign in to comment.