

























@@ -331,6 +331,7 @@ describe("telegram live qa runtime", () => {
331331"telegram-tools-compact-command",
332332"telegram-whoami-command",
333333"telegram-status-command",
334+"telegram-repeated-command-authorization",
334335"telegram-other-bot-command-gating",
335336"telegram-context-command",
336337"telegram-current-session-status-tool",
@@ -347,6 +348,7 @@ describe("telegram live qa runtime", () => {
347348"telegram-tools-compact-command",
348349"telegram-whoami-command",
349350"telegram-status-command",
351+"telegram-repeated-command-authorization",
350352"telegram-other-bot-command-gating",
351353"telegram-context-command",
352354"telegram-current-session-status-tool",
@@ -359,37 +361,47 @@ describe("telegram live qa runtime", () => {
359361]);
360362expect(
361363scenarios.find((scenario) => scenario.id === "telegram-status-command")?.buildRun("sut_bot")
362-.input,
364+.steps[0].input,
363365).toBe("/status@sut_bot");
364366expect(
365367scenarios.find((scenario) => scenario.id === "telegram-status-command")?.buildRun("sut_bot")
366-.expectedTextIncludes,
368+.steps[0].expectedTextIncludes,
367369).toEqual(["OpenClaw", "Model:", "Session:", "Activation:"]);
370+expect(
371+scenarios
372+.find((scenario) => scenario.id === "telegram-repeated-command-authorization")
373+?.buildRun("sut_bot").steps,
374+).toMatchObject([
375+{ driverGroupAuthorization: "deny", input: "/status@sut_bot", expectReply: false },
376+{ driverGroupAuthorization: "allow", input: "/status@sut_bot", expectReply: true },
377+{ input: "/help@sut_bot", expectReply: true },
378+{ input: "/commands@sut_bot", expectReply: true },
379+]);
368380expect(
369381scenarios
370382.find((scenario) => scenario.id === "telegram-other-bot-command-gating")
371-?.buildRun("sut_bot"),
383+?.buildRun("sut_bot").steps[0],
372384).toMatchObject({
373385expectReply: false,
374386input: "/status@OpenClawQaOtherBot",
375387});
376388expect(
377389scenarios
378390.find((scenario) => scenario.id === "telegram-current-session-status-tool")
379-?.buildRun("sut_bot"),
391+?.buildRun("sut_bot").steps[0],
380392).toMatchObject({
381393expectedTextIncludes: ["QA-TELEGRAM-CURRENT-SESSION-OK", ":telegram:group:"],
382394replyToLatestSutMessage: true,
383395});
384396expect(
385397scenarios
386398.find((scenario) => scenario.id === "telegram-mentioned-message-reply")
387-?.buildRun("sut_bot").replyToLatestSutMessage,
399+?.buildRun("sut_bot").steps[0].replyToLatestSutMessage,
388400).toBe(true);
389401expect(
390402scenarios
391403.find((scenario) => scenario.id === "telegram-reply-chain-exact-marker")
392-?.buildRun("sut_bot"),
404+?.buildRun("sut_bot").steps[0],
393405).toMatchObject({
394406expectedJoinedSutTextIncludes: ["QA-TELEGRAM-REPLY-CHAIN-OK"],
395407expectedSutMessageCount: 1,
@@ -398,7 +410,7 @@ describe("telegram live qa runtime", () => {
398410expect(
399411scenarios
400412.find((scenario) => scenario.id === "telegram-stream-final-single-message")
401-?.buildRun("sut_bot"),
413+?.buildRun("sut_bot").steps[0],
402414).toMatchObject({
403415expectedJoinedSutTextIncludes: ["QA-TELEGRAM-STREAM-SINGLE-OK"],
404416expectedSutMessageCount: 1,
@@ -407,7 +419,7 @@ describe("telegram live qa runtime", () => {
407419expect(
408420scenarios
409421.find((scenario) => scenario.id === "telegram-long-final-reuses-preview")
410-?.buildRun("sut_bot"),
422+?.buildRun("sut_bot").steps[0],
411423).toMatchObject({
412424expectedJoinedSutTextIncludes: ["TELEGRAM-LONG-FINAL-BEGIN", "TELEGRAM-LONG-FINAL-END"],
413425expectedSutMessageCount: 2,
@@ -416,7 +428,7 @@ describe("telegram live qa runtime", () => {
416428expect(
417429scenarios
418430.find((scenario) => scenario.id === "telegram-long-final-three-chunks")
419-?.buildRun("sut_bot"),
431+?.buildRun("sut_bot").steps[0],
420432).toMatchObject({
421433expectedJoinedSutTextIncludes: [
422434"TELEGRAM-LONG-FINAL-3CHUNK-BEGIN",
@@ -436,6 +448,7 @@ describe("telegram live qa runtime", () => {
436448"telegram-tools-compact-command",
437449"telegram-whoami-command",
438450"telegram-status-command",
451+"telegram-repeated-command-authorization",
439452"telegram-other-bot-command-gating",
440453"telegram-context-command",
441454"telegram-mentioned-message-reply",
@@ -451,6 +464,7 @@ describe("telegram live qa runtime", () => {
451464"telegram-tools-compact-command",
452465"telegram-whoami-command",
453466"telegram-status-command",
467+"telegram-repeated-command-authorization",
454468"telegram-other-bot-command-gating",
455469"telegram-context-command",
456470"telegram-mentioned-message-reply",
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。