test: add per-account action gating tests for Discord and Telegram handlers

This commit is contained in:
El-Fitz
2026-02-16 14:37:35 +01:00
committed by Peter Steinberger
parent a03fec2a3f
commit 4640999e77
4 changed files with 239 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
import type { AgentToolResult } from "@mariozechner/pi-agent-core";
import type { OpenClawConfig } from "../../config/config.js";
import { resolveTelegramAccount } from "../../telegram/accounts.js";
import type { TelegramButtonStyle, TelegramInlineButtons } from "../../telegram/button-types.js";
import { resolveTelegramAccount } from "../../telegram/accounts.js";
import {
resolveTelegramInlineButtonsScope,
resolveTelegramTargetChatType,