Fix Arcane refresh edit markup

This commit is contained in:
2026-02-07 23:36:20 +03:00
parent 83d98b5cb8
commit 0e6459ea40

View File

@@ -21,7 +21,7 @@ async def cmd_arcane_projects(msg: Message, *, edit: bool):
return
if edit:
await msg.edit_text("⏳ Arcane projects…", reply_markup=arcane_kb)
await msg.edit_text("⏳ Arcane projects…")
else:
await msg.answer("⏳ Arcane projects…", reply_markup=arcane_kb)
@@ -49,11 +49,11 @@ async def cmd_arcane_projects(msg: Message, *, edit: bool):
InlineKeyboardButton(text="", callback_data=f"arcane:down:{pid}"),
])
kb = InlineKeyboardMarkup(inline_keyboard=rows) if rows else arcane_kb
kb_inline = InlineKeyboardMarkup(inline_keyboard=rows) if rows else None
if edit:
await msg.edit_text("\n".join(lines), reply_markup=kb)
await msg.edit_text("\n".join(lines), reply_markup=kb_inline)
else:
await msg.answer("\n".join(lines), reply_markup=kb)
await msg.answer("\n".join(lines), reply_markup=kb_inline or arcane_kb)
asyncio.create_task(worker())