19 lines
683 B
Python
19 lines
683 B
Python
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}).")]
|