feat(matrix): add adapter baseline and platform-aware command hints
This commit is contained in:
parent
bcdaea5143
commit
82eb711844
20 changed files with 1127 additions and 3 deletions
19
adapter/matrix/handlers/confirm.py
Normal file
19
adapter/matrix/handlers/confirm.py
Normal 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}).")]
|
||||
Loading…
Add table
Add a link
Reference in a new issue