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 target_message = target_message[0] if target_message else None
else: else:
recent_messages = await client.get_messages(entity, limit=limit) recent_messages = await client.get_messages(entity, limit=limit)
target_message = next( target_message = next((msg for msg in recent_messages if _has_inline(msg)), None)
(msg for msg in recent_messages if _has_inline(msg)), None
)
if not target_message: if not target_message:
return "No message with inline buttons found." return "No message with inline buttons found."