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

推荐订阅源

F
Fortinet All Blogs
V
Visual Studio Blog
T
Tor Project blog
量子位
Jina AI
Jina AI
Hugging Face - Blog
Hugging Face - Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
有赞技术团队
有赞技术团队
博客园 - 司徒正美
博客园_首页
罗磊的独立博客
美团技术团队
人人都是产品经理
人人都是产品经理
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
IT之家
IT之家
C
Check Point Blog
博客园 - 聂微东
爱范儿
爱范儿
Schneier on Security
Schneier on Security
T
Threat Research - Cisco Blogs
T
Tailwind CSS Blog
L
LINUX DO - 热门话题
大猫的无限游戏
大猫的无限游戏
V
Vulnerabilities – Threatpost
C
Cisco Blogs
GbyAI
GbyAI
Spread Privacy
Spread Privacy
博客园 - 叶小钗
博客园 - 【当耐特】
T
Tenable Blog
雷峰网
雷峰网
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Apple Machine Learning Research
Apple Machine Learning Research
小众软件
小众软件
J
Java Code Geeks
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
宝玉的分享
宝玉的分享
Microsoft Azure Blog
Microsoft Azure Blog
Simon Willison's Weblog
Simon Willison's Weblog
N
Netflix TechBlog - Medium
T
The Exploit Database - CXSecurity.com
腾讯CDC
C
CERT Recently Published Vulnerability Notes
P
Proofpoint News Feed
阮一峰的网络日志
阮一峰的网络日志
Scott Helme
Scott Helme
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Martin Fowler
Martin Fowler

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
refactor(telegram): unify outbound delivery adapter · openclaw/openclaw@6554e85
obviyus · 2026-05-07 · via Recent Commits to openclaw:main

@@ -11,14 +11,8 @@ import {

1111

createChatChannelPlugin,

1212

} from "openclaw/plugin-sdk/channel-core";

1313

import { createAccountStatusSink } from "openclaw/plugin-sdk/channel-lifecycle";

14-

import {

15-

createMessageReceiptFromOutboundResults,

16-

defineChannelMessageAdapter,

17-

type ChannelMessageSendResult,

18-

type MessageReceiptPartKind,

19-

} from "openclaw/plugin-sdk/channel-message";

14+

import { createChannelMessageAdapterFromOutbound } from "openclaw/plugin-sdk/channel-message";

2015

import { createPairingPrefixStripper } from "openclaw/plugin-sdk/channel-pairing";

21-

import { attachChannelToResult } from "openclaw/plugin-sdk/channel-send-result";

2216

import {

2317

PAIRING_APPROVED_MESSAGE,

2418

buildTokenChannelStatusSummary,

@@ -62,9 +56,8 @@ import {

6256

import { resolveTelegramInlineButtonsScope } from "./inline-buttons.js";

6357

import * as monitorModule from "./monitor.js";

6458

import { looksLikeTelegramTargetId, normalizeTelegramMessagingTarget } from "./normalize.js";

65-

import { sendTelegramPayloadMessages } from "./outbound-adapter.js";

66-

import { telegramOutboundBaseAdapter } from "./outbound-base.js";

67-

import { parseTelegramReplyToMessageId, parseTelegramThreadId } from "./outbound-params.js";

59+

import { createTelegramOutboundAdapter } from "./outbound-adapter.js";

60+

import { parseTelegramThreadId } from "./outbound-params.js";

6861

import type { TelegramProbe } from "./probe.js";

6962

import * as probeModule from "./probe.js";

7063

import { resolveTelegramReactionLevel } from "./reaction-level.js";

@@ -108,8 +101,6 @@ async function loadTelegramUpdateOffsetRuntime() {

108101

return await telegramUpdateOffsetRuntimePromise;

109102

}

110103111-

type TelegramSendOptions = NonNullable<Parameters<TelegramSendFn>[2]>;

112-113104

function resolveTelegramProbe() {

114105

return (

115106

getOptionalTelegramRuntime()?.channel?.telegram?.probeTelegram ?? probeModule.probeTelegram

@@ -169,115 +160,39 @@ function resolveTelegramTokenHelper() {

169160

);

170161

}

171162172-

function buildTelegramSendOptions(params: {

173-

cfg: OpenClawConfig;

174-

mediaUrl?: string | null;

175-

mediaLocalRoots?: readonly string[] | null;

176-

mediaReadFile?: ((filePath: string) => Promise<Buffer>) | null;

177-

accountId?: string | null;

178-

replyToId?: string | null;

179-

threadId?: string | number | null;

180-

silent?: boolean | null;

181-

forceDocument?: boolean | null;

182-

gatewayClientScopes?: readonly string[] | null;

183-

}): TelegramSendOptions {

184-

return {

185-

verbose: false,

186-

cfg: params.cfg,

187-

...(params.mediaUrl ? { mediaUrl: params.mediaUrl } : {}),

188-

...(params.mediaLocalRoots?.length ? { mediaLocalRoots: params.mediaLocalRoots } : {}),

189-

...(params.mediaReadFile ? { mediaReadFile: params.mediaReadFile } : {}),

190-

messageThreadId: parseTelegramThreadId(params.threadId),

191-

replyToMessageId: parseTelegramReplyToMessageId(params.replyToId),

192-

accountId: params.accountId ?? undefined,

193-

silent: params.silent ?? undefined,

194-

forceDocument: params.forceDocument ?? undefined,

195-

...(Array.isArray(params.gatewayClientScopes)

196-

? { gatewayClientScopes: [...params.gatewayClientScopes] }

197-

: {}),

198-

};

199-

}

200-201-

async function sendTelegramOutbound(params: {

202-

cfg: OpenClawConfig;

203-

to: string;

204-

text: string;

205-

mediaUrl?: string | null;

206-

mediaLocalRoots?: readonly string[] | null;

207-

mediaReadFile?: ((filePath: string) => Promise<Buffer>) | null;

208-

accountId?: string | null;

209-

deps?: OutboundSendDeps;

210-

replyToId?: string | null;

211-

threadId?: string | number | null;

212-

silent?: boolean | null;

213-

forceDocument?: boolean | null;

214-

gatewayClientScopes?: readonly string[] | null;

215-

}) {

216-

const send = await resolveTelegramSend(params.deps);

217-

return await send(

218-

params.to,

219-

params.text,

220-

buildTelegramSendOptions({

221-

cfg: params.cfg,

222-

mediaUrl: params.mediaUrl,

223-

mediaLocalRoots: params.mediaLocalRoots,

224-

mediaReadFile: params.mediaReadFile,

225-

accountId: params.accountId,

226-

replyToId: params.replyToId,

227-

threadId: params.threadId,

228-

silent: params.silent,

229-

forceDocument: params.forceDocument,

230-

gatewayClientScopes: params.gatewayClientScopes,

163+

const telegramChannelOutbound = createTelegramOutboundAdapter({

164+

resolveSend: resolveTelegramSend,

165+

loadSendModule: loadTelegramSendModule,

166+

shouldSuppressLocalPayloadPrompt: ({ cfg, accountId, payload }) =>

167+

shouldSuppressLocalTelegramExecApprovalPrompt({

168+

cfg,

169+

accountId,

170+

payload,

231171

}),

232-

);

233-

}

234-235-

type TelegramMessageSendSourceResult = {

236-

messageId?: string;

237-

chatId?: string;

238-

receipt?: ChannelMessageSendResult["receipt"];

239-

};

240-241-

function toTelegramMessageSendResult(

242-

result: TelegramMessageSendSourceResult,

243-

kind: MessageReceiptPartKind,

244-

replyToId?: string | null,

245-

): ChannelMessageSendResult {

246-

const receipt =

247-

result.receipt ??

248-

createMessageReceiptFromOutboundResults({

249-

results: result.messageId

250-

? [

251-

{

252-

channel: "telegram",

253-

messageId: result.messageId,

254-

chatId: result.chatId,

255-

},

256-

]

257-

: [],

258-

kind,

259-

...(replyToId ? { replyToId } : {}),

260-

});

261-

return {

262-

messageId: result.messageId || receipt.primaryPlatformMessageId,

263-

receipt,

264-

};

265-

}

172+

beforeDeliverPayload: async ({ cfg, target, hint }) => {

173+

if (hint?.kind !== "approval-pending" || hint.approvalKind !== "exec") {

174+

return;

175+

}

176+

const threadId =

177+

typeof target.threadId === "number"

178+

? target.threadId

179+

: typeof target.threadId === "string"

180+

? Number.parseInt(target.threadId, 10)

181+

: undefined;

182+

const { sendTypingTelegram } = await loadTelegramSendModule();

183+

await sendTypingTelegram(target.to, {

184+

cfg,

185+

accountId: target.accountId ?? undefined,

186+

...(Number.isFinite(threadId) ? { messageThreadId: threadId } : {}),

187+

}).catch(() => {});

188+

},

189+

shouldTreatDeliveredTextAsVisible: shouldTreatTelegramDeliveredTextAsVisible,

190+

targetsMatchForReplySuppression: targetsMatchTelegramReplySuppression,

191+

preferFinalAssistantVisibleText: true,

192+

});

266193267-

const telegramMessageAdapter = defineChannelMessageAdapter({

194+

const telegramMessageAdapter = createChannelMessageAdapterFromOutbound<OpenClawConfig>({

268195

id: "telegram",

269-

durableFinal: {

270-

capabilities: {

271-

text: true,

272-

media: true,

273-

payload: true,

274-

silent: true,

275-

replyTo: true,

276-

thread: true,

277-

messageSendingHooks: true,

278-

batch: true,

279-

},

280-

},

281196

live: {

282197

capabilities: {

283198

draftPreview: true,

@@ -297,70 +212,7 @@ const telegramMessageAdapter = defineChannelMessageAdapter({

297212

defaultAckPolicy: "after_agent_dispatch",

298213

supportedAckPolicies: ["after_receive_record", "after_agent_dispatch"],

299214

},

300-

send: {

301-

text: async (ctx) =>

302-

toTelegramMessageSendResult(

303-

await sendTelegramOutbound({

304-

cfg: ctx.cfg,

305-

to: ctx.to,

306-

text: ctx.text,

307-

accountId: ctx.accountId,

308-

deps: ctx.deps,

309-

replyToId: ctx.replyToId,

310-

threadId: ctx.threadId,

311-

silent: ctx.silent,

312-

gatewayClientScopes: ctx.gatewayClientScopes,

313-

}),

314-

"text",

315-

ctx.replyToId,

316-

),

317-

media: async (ctx) =>

318-

toTelegramMessageSendResult(

319-

await sendTelegramOutbound({

320-

cfg: ctx.cfg,

321-

to: ctx.to,

322-

text: ctx.text,

323-

mediaUrl: ctx.mediaUrl,

324-

mediaLocalRoots: ctx.mediaLocalRoots,

325-

mediaReadFile: ctx.mediaReadFile,

326-

accountId: ctx.accountId,

327-

deps: ctx.deps,

328-

replyToId: ctx.replyToId,

329-

threadId: ctx.threadId,

330-

silent: ctx.silent,

331-

forceDocument: ctx.forceDocument,

332-

gatewayClientScopes: ctx.gatewayClientScopes,

333-

}),

334-

"media",

335-

ctx.replyToId,

336-

),

337-

payload: async (ctx) => {

338-

const send = await resolveTelegramSend(ctx.deps);

339-

const result = attachChannelToResult(

340-

"telegram",

341-

await sendTelegramPayloadMessages({

342-

send,

343-

to: ctx.to,

344-

payload: ctx.payload,

345-

baseOpts: {

346-

...buildTelegramSendOptions({

347-

cfg: ctx.cfg,

348-

mediaUrl: ctx.mediaUrl,

349-

mediaLocalRoots: ctx.mediaLocalRoots,

350-

accountId: ctx.accountId,

351-

replyToId: ctx.replyToId,

352-

threadId: ctx.threadId,

353-

silent: ctx.silent,

354-

forceDocument: ctx.forceDocument,

355-

gatewayClientScopes: ctx.gatewayClientScopes,

356-

}),

357-

...(ctx.mediaReadFile ? { mediaReadFile: ctx.mediaReadFile } : {}),

358-

},

359-

}),

360-

);

361-

return toTelegramMessageSendResult(result, "unknown", ctx.replyToId);

362-

},

363-

},

215+

outbound: telegramChannelOutbound,

364216

});

365217366218

const telegramMessageActions: ChannelMessageActionAdapter = {

@@ -1179,142 +1031,5 @@ export const telegramPlugin = createChatChannelPlugin({

11791031

return to.includes(":topic:") ? to : `${to}:topic:${threadId}`;

11801032

},

11811033

},

1182-

outbound: {

1183-

base: {

1184-

...telegramOutboundBaseAdapter,

1185-

shouldSuppressLocalPayloadPrompt: ({ cfg, accountId, payload }) =>

1186-

shouldSuppressLocalTelegramExecApprovalPrompt({

1187-

cfg,

1188-

accountId,

1189-

payload,

1190-

}),

1191-

beforeDeliverPayload: async ({ cfg, target, hint }) => {

1192-

if (hint?.kind !== "approval-pending" || hint.approvalKind !== "exec") {

1193-

return;

1194-

}

1195-

const threadId =

1196-

typeof target.threadId === "number"

1197-

? target.threadId

1198-

: typeof target.threadId === "string"

1199-

? Number.parseInt(target.threadId, 10)

1200-

: undefined;

1201-

const { sendTypingTelegram } = await loadTelegramSendModule();

1202-

await sendTypingTelegram(target.to, {

1203-

cfg,

1204-

accountId: target.accountId ?? undefined,

1205-

...(Number.isFinite(threadId) ? { messageThreadId: threadId } : {}),

1206-

}).catch(() => {});

1207-

},

1208-

shouldSkipPlainTextSanitization: ({ payload }) => Boolean(payload.channelData),

1209-

shouldTreatDeliveredTextAsVisible: shouldTreatTelegramDeliveredTextAsVisible,

1210-

preferFinalAssistantVisibleText: true,

1211-

targetsMatchForReplySuppression: targetsMatchTelegramReplySuppression,

1212-

resolveEffectiveTextChunkLimit: ({ fallbackLimit }) =>

1213-

typeof fallbackLimit === "number" ? Math.min(fallbackLimit, 4096) : 4096,

1214-

supportsPollDurationSeconds: true,

1215-

supportsAnonymousPolls: true,

1216-

sendPayload: async ({

1217-

cfg,

1218-

to,

1219-

payload,

1220-

mediaLocalRoots,

1221-

accountId,

1222-

deps,

1223-

replyToId,

1224-

threadId,

1225-

silent,

1226-

forceDocument,

1227-

gatewayClientScopes,

1228-

}) => {

1229-

const send = await resolveTelegramSend(deps);

1230-

const result = await sendTelegramPayloadMessages({

1231-

send,

1232-

to,

1233-

payload,

1234-

baseOpts: buildTelegramSendOptions({

1235-

cfg,

1236-

mediaLocalRoots,

1237-

accountId,

1238-

replyToId,

1239-

threadId,

1240-

silent,

1241-

forceDocument,

1242-

gatewayClientScopes,

1243-

}),

1244-

});

1245-

return attachChannelToResult("telegram", result);

1246-

},

1247-

},

1248-

attachedResults: {

1249-

channel: "telegram",

1250-

sendText: async ({

1251-

cfg,

1252-

to,

1253-

text,

1254-

accountId,

1255-

deps,

1256-

replyToId,

1257-

threadId,

1258-

silent,

1259-

gatewayClientScopes,

1260-

}) =>

1261-

await sendTelegramOutbound({

1262-

cfg,

1263-

to,

1264-

text,

1265-

accountId,

1266-

deps,

1267-

replyToId,

1268-

threadId,

1269-

silent,

1270-

gatewayClientScopes,

1271-

}),

1272-

sendMedia: async ({

1273-

cfg,

1274-

to,

1275-

text,

1276-

mediaUrl,

1277-

mediaLocalRoots,

1278-

accountId,

1279-

deps,

1280-

replyToId,

1281-

threadId,

1282-

silent,

1283-

gatewayClientScopes,

1284-

}) =>

1285-

await sendTelegramOutbound({

1286-

cfg,

1287-

to,

1288-

text,

1289-

mediaUrl,

1290-

mediaLocalRoots,

1291-

accountId,

1292-

deps,

1293-

replyToId,

1294-

threadId,

1295-

silent,

1296-

gatewayClientScopes,

1297-

}),

1298-

sendPoll: async ({

1299-

cfg,

1300-

to,

1301-

poll,

1302-

accountId,

1303-

threadId,

1304-

silent,

1305-

isAnonymous,

1306-

gatewayClientScopes,

1307-

}) => {

1308-

const { sendPollTelegram } = await loadTelegramSendModule();

1309-

return await sendPollTelegram(to, poll, {

1310-

cfg,

1311-

accountId: accountId ?? undefined,

1312-

messageThreadId: parseTelegramThreadId(threadId),

1313-

silent: silent ?? undefined,

1314-

isAnonymous: isAnonymous ?? undefined,

1315-

gatewayClientScopes,

1316-

});

1317-

},

1318-

},

1319-

},

1034+

outbound: telegramChannelOutbound,

13201035

});