style: apply black formatting to list_inline_buttons

This commit is contained in:
Ivan Kolodrivskyi 2026-04-09 09:20:36 +03:00
parent cf6888e000
commit b2c3a865d8

View file

@ -839,9 +839,7 @@ async def list_inline_buttons(
target_message = target_message[0] if target_message else None
else:
recent_messages = await client.get_messages(entity, limit=limit)
target_message = next(
(msg for msg in recent_messages if _has_inline(msg)), None
)
target_message = next((msg for msg in recent_messages if _has_inline(msg)), None)
if not target_message:
return "No message with inline buttons found."