惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
有赞技术团队
有赞技术团队
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
F
Fox-IT International blog
Recorded Future
Recorded Future
T
ThreatConnect
T
The Exploit Database - CXSecurity.com
SecWiki News
SecWiki News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
人人都是产品经理
人人都是产品经理
T
Tenable Blog
L
LINUX DO - 最新话题
博客园_首页
Hugging Face - Blog
Hugging Face - Blog
罗磊的独立博客
博客园 - 司徒正美
The Hacker News
The Hacker News
博客园 - 聂微东
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Scott Helme
Scott Helme
博客园 - 【当耐特】
O
OpenAI News
Schneier on Security
Schneier on Security
Latest news
Latest news
S
Security @ Cisco Blogs
S
Secure Thoughts
F
Full Disclosure
L
Lohrmann on Cybersecurity
S
SegmentFault 最新的问题
T
Tor Project blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
量子位
小众软件
小众软件
T
Threat Research - Cisco Blogs
Simon Willison's Weblog
Simon Willison's Weblog
IT之家
IT之家
大猫的无限游戏
大猫的无限游戏
N
News and Events Feed by Topic
E
Exploit-DB.com RSS Feed
J
Java Code Geeks
Last Week in AI
Last Week in AI
酷 壳 – CoolShell
酷 壳 – CoolShell
Application and Cybersecurity Blog
Application and Cybersecurity Blog
S
Schneier on Security
Cisco Talos Blog
Cisco Talos Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
P
Proofpoint News Feed
Recent Commits to openclaw:main
Recent Commits to openclaw:main
雷峰网
雷峰网

Recent Commits to openclaw:main

fix: prune retired model catalog entries ci: authenticate release-check reachability fetches · openclaw/openclaw@0c192e2 docs(changelog): note Telegram attachment action fix · openclaw/openclaw@c5f1344 refactor(telegram): simplify action media sends · openclaw/openclaw@0540025 fix(doctor): canonicalize git checkout detection (#85735) test(ci): update plugin prerelease checkout expectation ci: persist checkout credentials for release validation test(codex): avoid searchable-tool registration flake · openclaw/openclaw@5e8c71b refactor: simplify doctor repair checks (#83753) docs(changelog): credit landed bug sweep PRs · openclaw/openclaw@24de304 perf(utils): preserve message identity in stripInlineDirectiveTagsFro… · openclaw/openclaw@bf84b30 fix(agents): add openai-responses family to non-visible turn retry gu… · openclaw/openclaw@49e9c3e fix(status): show configured cost for aws-sdk models (#85619) · openclaw/openclaw@6e289b4 fix(microsoft-foundry): DeepSeek V4 models incorrectly use openai-com… · openclaw/openclaw@ec43acb fix(skills): show empty state notice in config wizard (#85032) · openclaw/openclaw@74e65f4 test(codex): avoid forced-tool allowlist flake · openclaw/openclaw@ef7e652 fix: avoid gateway startup event-loop stalls test(codex): type forced-tool request mock · openclaw/openclaw@f6ab188 test(codex): avoid forced-tool turn flake · openclaw/openclaw@8d1ab83 test(codex): avoid startup cleanup socket flake fix(gateway): pin relative state dir at startup · openclaw/openclaw@2e5be0c fix(whatsapp): persist inbound delivery in plugin state (#85506) · openclaw/openclaw@b47bace test(codex): make sandbox cleanup proof deterministic fix(cron): route topic targets through channel plugins · openclaw/openclaw@9175491 fix(agents): simplify subagent completion handoff ci(release): isolate npm publish concurrency · openclaw/openclaw@9c26b87 ci(release): allow beta publish after npm preflight · openclaw/openclaw@0e37263 fix(release): allow large beta smoke run lists ci(release): retry child workflow polling · openclaw/openclaw@c689f71 ci(release): poll child workflows through actions api · openclaw/openclaw@e5dab55 fix(bootstrap): guard bootstrap name checks against undefined names (… · openclaw/openclaw@25fa46b fix(cli): waitForever must keep the event loop alive (#85694) · openclaw/openclaw@eca9645 fix(cli-output): ignore cumulative usage from result events in stream… · openclaw/openclaw@84229d9 fix(secrets): show irreversible warning after interactive apply confi… · openclaw/openclaw@bb52b54 fix(agents/harness): pass CLI runtime aliases through to PI in select… · openclaw/openclaw@2c3b7ea docs: add bug-sweep changelog entries fix(release): run npm shims on Windows · openclaw/openclaw@1f32a48 fix(ci): repair crabbox hydrate replay (#85706) · openclaw/openclaw@0d7d99b feat(auth): support named model login profiles fix(gateway): restore WebChat image understanding routing · openclaw/openclaw@55a0c9b fix(anthropic): migrate 1M context to GA handling fix(scripts): resolve Crabbox shims on Windows · openclaw/openclaw@5c535df test(ci): harden installer smoke coverage · openclaw/openclaw@68bcd4e fix(status): bound deep docker audit probes (#85476) · openclaw/openclaw@f7c05dc docs: expand meeting notes docs · openclaw/openclaw@a7e0fa0 fix(cli): validate tasks audit limit (#84901) · openclaw/openclaw@44d470f fix(twitch): preserve newer message handler during cleanup (#85425) · openclaw/openclaw@71ddc01 fix(ci): require live docker credentials by resource · openclaw/openclaw@1e21121 fix(diagnostics): drop snake case otel ids (#72645) · openclaw/openclaw@e0bafc5 fix(ci): clear signal and docs guard blockers (#85693) · openclaw/openclaw@3a1d4dd fix(ci): require factory auth for droid live docker · openclaw/openclaw@cc6c372 fix: honor disabled synthetic auth lookup · openclaw/openclaw@a4a1abb fix(scripts): repair live docker auth shellcheck · openclaw/openclaw@4e34ac4 fix(docker): avoid printing gateway token · openclaw/openclaw@5db773f fix(cli): keep logs follow on live gateway state · openclaw/openclaw@6e3b318 fix(e2e): prefer x64 MinGit on Windows · openclaw/openclaw@15d9134 feat: add meeting notes plugin docs: update changelog for memory artifacts (#85060) (thanks @brokema… · openclaw/openclaw@9e55383 fix(memory-lancedb): expose public memory artifacts · openclaw/openclaw@aac1abe fix(memory): preserve sidecar capability hooks · openclaw/openclaw@e6288ca fix(e2e): scrub Windows update config on PowerShell 5.1 · openclaw/openclaw@6657b49 docs: absorb documentation PR sweep · openclaw/openclaw@2c536a8 fix(agents): stabilize Linux fallback tests · openclaw/openclaw@6b04170 fix(codex): preserve native web search action metadata (#85378) · openclaw/openclaw@bcf756c test: refresh Codex prompt snapshots · openclaw/openclaw@492d656 docs: absorb hook and subagent guidance PRs fix(agents): audit tool policy blocks (#85673) · openclaw/openclaw@09dd051 ci: fix plugin npm bundled dependency install · openclaw/openclaw@d485464 feat(diagnostics): classify skill and tool usage (#80370) docs(skills): clarify control ui recording proof (#85568) · openclaw/openclaw@0b476b9 test(agents): repair main failure fixtures · openclaw/openclaw@c29967b feat(diagnostics): trace gateway secret preparation (#83019) · openclaw/openclaw@4f0c902 fix(diagnostics): harden observability exports and smokes (#85371) · openclaw/openclaw@7f05be0 fix(stepfun): drop stale auth choice metadata · openclaw/openclaw@0b2ab6c test(e2e): sample kitchen sink RSS on Windows · openclaw/openclaw@73c1e37 test(plugins): fail gauntlet on load diagnostics fix(build): preserve tsdown heap floor · openclaw/openclaw@9ff1a43 fix(tools): honor config apiKey in media tool preflight (#85570) · openclaw/openclaw@31c269f fix(e2e): support macOS script wrappers fix(ci): scope changed shrinkwrap checks · openclaw/openclaw@743fd4c chore(ui): refresh fa control ui locale chore(ui): refresh nl control ui locale · openclaw/openclaw@908464b chore(ui): refresh vi control ui locale · openclaw/openclaw@62b75f4 chore(ui): refresh th control ui locale · openclaw/openclaw@fc4ba31 chore(ui): refresh id control ui locale · openclaw/openclaw@5b1bdd1 chore(ui): refresh pl control ui locale · openclaw/openclaw@534d4b1 chore(ui): refresh uk control ui locale · openclaw/openclaw@055c3bd chore(ui): refresh ar control ui locale · openclaw/openclaw@89c5a68 chore(ui): refresh it control ui locale · openclaw/openclaw@44ca805 chore(ui): refresh tr control ui locale chore(ui): refresh fr control ui locale · openclaw/openclaw@2240b0e chore(ui): refresh ko control ui locale · openclaw/openclaw@5fa250b chore(ui): refresh ja-JP control ui locale · openclaw/openclaw@f4ea401 chore(ui): refresh es control ui locale · openclaw/openclaw@751dde0 chore(ui): refresh de control ui locale · openclaw/openclaw@72a9b5b chore(ui): refresh pt-BR control ui locale · openclaw/openclaw@501b6e0 chore(ui): refresh zh-CN control ui locale chore(ui): refresh zh-TW control ui locale · openclaw/openclaw@88dee79 Add Slack approval QA checkpoints (#85141) fix(agents): mirror internal ui message tool replies (#85564)
fix(telegram): send attachment paths as media · openclaw/openclaw@fdf01db
keshavbotage · 2026-05-23 · via Recent Commits to openclaw:main

@@ -16,6 +16,7 @@ import {

1616

renderMessagePresentationFallbackText,

1717

} from "openclaw/plugin-sdk/interactive-runtime";

1818

import type { MessagePresentation } from "openclaw/plugin-sdk/interactive-runtime";

19+

import { sendPayloadMediaSequenceOrFallback } from "openclaw/plugin-sdk/reply-payload";

1920

import { createTelegramActionGate, resolveTelegramPollActionGateState } from "./accounts.js";

2021

import { resolveTelegramInlineButtons } from "./button-types.js";

2122

import { notifyTelegramInboundEventOutboundSuccess } from "./inbound-event-delivery.js";

@@ -132,6 +133,48 @@ function readTelegramReplyToMessageId(params: Record<string, unknown>) {

132133

);

133134

}

134135136+

function pushTelegramMediaUrl(mediaUrls: string[], seen: Set<string>, value: unknown): void {

137+

if (typeof value !== "string") {

138+

return;

139+

}

140+

const normalized = value.trim();

141+

if (!normalized || seen.has(normalized)) {

142+

return;

143+

}

144+

seen.add(normalized);

145+

mediaUrls.push(normalized);

146+

}

147+148+

function readTelegramSendMediaUrls(params: Record<string, unknown>) {

149+

const mediaUrls: string[] = [];

150+

const seen = new Set<string>();

151+

pushTelegramMediaUrl(mediaUrls, seen, params.mediaUrl);

152+

pushTelegramMediaUrl(mediaUrls, seen, params.media);

153+

pushTelegramMediaUrl(mediaUrls, seen, params.path);

154+

pushTelegramMediaUrl(mediaUrls, seen, params.filePath);

155+

pushTelegramMediaUrl(mediaUrls, seen, params.fileUrl);

156+

if (Array.isArray(params.mediaUrls)) {

157+

for (const mediaUrl of params.mediaUrls) {

158+

pushTelegramMediaUrl(mediaUrls, seen, mediaUrl);

159+

}

160+

}

161+

if (Array.isArray(params.attachments)) {

162+

for (const attachment of params.attachments) {

163+

if (!attachment || typeof attachment !== "object" || Array.isArray(attachment)) {

164+

continue;

165+

}

166+

const record = attachment as Record<string, unknown>;

167+

pushTelegramMediaUrl(mediaUrls, seen, record.media);

168+

pushTelegramMediaUrl(mediaUrls, seen, record.mediaUrl);

169+

pushTelegramMediaUrl(mediaUrls, seen, record.path);

170+

pushTelegramMediaUrl(mediaUrls, seen, record.filePath);

171+

pushTelegramMediaUrl(mediaUrls, seen, record.fileUrl);

172+

pushTelegramMediaUrl(mediaUrls, seen, record.url);

173+

}

174+

}

175+

return mediaUrls;

176+

}

177+135178

function resolveTelegramButtonsFromParams(

136179

params: Record<string, unknown>,

137180

presentation = normalizeMessagePresentation(params.presentation),

@@ -350,16 +393,13 @@ export async function handleTelegramAction(

350393

throw new Error("Telegram sendMessage is disabled.");

351394

}

352395

const to = readStringParam(params, "to", { required: true });

353-

const mediaUrl =

354-

readStringParam(params, "mediaUrl") ??

355-

readStringParam(params, "media", {

356-

trim: false,

357-

});

396+

const mediaUrls = readTelegramSendMediaUrls(params);

397+

const firstMediaUrl = mediaUrls[0];

358398

const presentation = normalizeMessagePresentation(params.presentation);

359399

const buttons = resolveTelegramButtonsFromParams(params, presentation);

360400

const content = readTelegramSendContent({

361401

args: params,

362-

mediaUrl: mediaUrl ?? undefined,

402+

mediaUrl: firstMediaUrl,

363403

hasButtons: Array.isArray(buttons) && buttons.length > 0,

364404

interactive: params.interactive,

365405

presentation,

@@ -401,15 +441,13 @@ export async function handleTelegramAction(

401441

"Telegram bot token missing. Set TELEGRAM_BOT_TOKEN or channels.telegram.botToken.",

402442

);

403443

}

404-

const result = await telegramActionRuntime.sendMessageTelegram(to, content, {

444+

const sendOptions = {

405445

cfg,

406446

token,

407447

accountId: accountId ?? undefined,

408-

mediaUrl: mediaUrl || undefined,

409448

mediaLocalRoots: options?.mediaLocalRoots,

410449

mediaReadFile: options?.mediaReadFile,

411450

gatewayClientScopes: options?.gatewayClientScopes,

412-

buttons,

413451

replyToMessageId: replyToMessageId ?? undefined,

414452

messageThreadId: messageThreadId ?? undefined,

415453

quoteText: quoteText ?? undefined,

@@ -419,6 +457,22 @@ export async function handleTelegramAction(

419457

readBooleanParam(params, "forceDocument") ??

420458

readBooleanParam(params, "asDocument") ??

421459

false,

460+

};

461+

const result = await sendPayloadMediaSequenceOrFallback({

462+

text: content,

463+

mediaUrls,

464+

fallbackResult: { messageId: "unknown", chatId: to },

465+

sendNoMedia: async () =>

466+

await telegramActionRuntime.sendMessageTelegram(to, content, {

467+

...sendOptions,

468+

buttons,

469+

}),

470+

send: async ({ text, mediaUrl, isFirst }) =>

471+

await telegramActionRuntime.sendMessageTelegram(to, text, {

472+

...sendOptions,

473+

mediaUrl,

474+

...(isFirst ? { buttons } : {}),

475+

}),

422476

});

423477

notifyVisibleOutboundSuccess(to, messageThreadId);

424478

await maybePinTelegramActionSend({