feat(matrix): add adapter baseline and platform-aware command hints

This commit is contained in:
Mikhail Putilovskij 2026-04-01 01:04:54 +03:00
parent bcdaea5143
commit 82eb711844
20 changed files with 1127 additions and 3 deletions

View file

@ -0,0 +1,19 @@
from __future__ import annotations
from core.protocol import IncomingCallback, OutgoingMessage
async def handle_confirm(
event: IncomingCallback, auth_mgr, platform, chat_mgr, settings_mgr
) -> list:
action_id = event.payload.get("action_id", "unknown")
return [
OutgoingMessage(chat_id=event.chat_id, text=f"Действие подтверждено (id: {action_id}).")
]
async def handle_cancel(
event: IncomingCallback, auth_mgr, platform, chat_mgr, settings_mgr
) -> list:
action_id = event.payload.get("action_id", "unknown")
return [OutgoingMessage(chat_id=event.chat_id, text=f"Действие отменено (id: {action_id}).")]