@@ -27,7 +27,6 @@ import { chunkMarkdownTextWithMode, type ChunkMode } from "openclaw/plugin-sdk/r
|
27 | 27 | import type { ReplyPayload } from "openclaw/plugin-sdk/reply-payload"; |
28 | 28 | import type { RuntimeEnv } from "openclaw/plugin-sdk/runtime-env"; |
29 | 29 | import { danger, logVerbose } from "openclaw/plugin-sdk/runtime-env"; |
30 | | -import { createSubsystemLogger } from "openclaw/plugin-sdk/runtime-env"; |
31 | 30 | import { formatErrorMessage } from "openclaw/plugin-sdk/ssrf-runtime"; |
32 | 31 | import { loadWebMedia } from "openclaw/plugin-sdk/web-media"; |
33 | 32 | import { resolveTelegramInlineButtons, type TelegramInlineButtons } from "../button-types.js"; |
@@ -59,7 +58,6 @@ const VOICE_FORBIDDEN_MARKER = "VOICE_MESSAGES_FORBIDDEN";
|
59 | 58 | const CAPTION_TOO_LONG_RE = /caption is too long/i; |
60 | 59 | const GrammyErrorCtor: typeof GrammyError | undefined = |
61 | 60 | typeof GrammyError === "function" ? GrammyError : undefined; |
62 | | -const silentReplyLogger = createSubsystemLogger("telegram/silent-reply"); |
63 | 61 | |
64 | 62 | type DeliveryProgress = ReplyThreadDeliveryProgress & { |
65 | 63 | deliveredCount: number; |
@@ -754,18 +752,6 @@ export async function deliverReplies(params: {
|
754 | 752 | surface: "telegram", |
755 | 753 | }), |
756 | 754 | ); |
757 | | -const originalExactSilentCount = candidateReplies.filter( |
758 | | -(reply) => typeof reply.text === "string" && reply.text.trim().toUpperCase() === "NO_REPLY", |
759 | | -).length; |
760 | | -if (originalExactSilentCount > 0) { |
761 | | -silentReplyLogger.debug("telegram delivery normalized NO_REPLY candidates", { |
762 | | -hasSessionKey: Boolean(params.sessionKeyForInternalHooks), |
763 | | -hasChatId: params.chatId.length > 0, |
764 | | -originalCount: candidateReplies.length, |
765 | | -normalizedCount: normalizedReplies.length, |
766 | | - originalExactSilentCount, |
767 | | -}); |
768 | | -} |
769 | 755 | for (const originalReply of normalizedReplies) { |
770 | 756 | let reply = originalReply; |
771 | 757 | const mediaList = reply?.mediaUrls?.length |
|