Connect a user-created Telegram bot to channel projects with encrypted credentials, numeric sender allowlists, unified execution and text replies. Use Electron networking for system proxy support, with polling recovery, cancellable delivery retries and live status updates. Add schema 61 channel support, lifecycle regression tests, Electron integration probes and feature documentation. Require the performance principles in AGENTS.md and record three alternating baseline/current Main benchmark rounds. Validation: typecheck, lint and diff checks passed. Full suite: 6087 passed, 87 skipped, one intermittent inline-help Electron failure that passed unchanged in isolation. Real Bot plus model acceptance remains pending; the local TLS proxy probe is opt-in. Release note: 新增 Telegram 私聊通道,可配置 Bot Token 和用户白名单,通过通道项目处理文字请求并回复结果。支持系统代理、断线重连和停用取消;真实 Bot 与模型的完整联调仍待完成。
16 lines
762 B
TypeScript
16 lines
762 B
TypeScript
import { createRoot } from 'react-dom/client'
|
|
import { ChannelSettingsSection } from '../../src/renderer/src/ChannelSettingsSection'
|
|
import { UiLocaleProvider } from '../../src/renderer/src/i18n/UiLocaleProvider'
|
|
import { changeUiLocale } from '../../src/renderer/src/i18n'
|
|
import '../../src/renderer/src/styles.css'
|
|
|
|
// All reads and actions use the unmodified production preload bridge.
|
|
await changeUiLocale('en-US')
|
|
const projects = await window.goodbuddy.projects.list()
|
|
createRoot(document.getElementById('root')!).render(
|
|
<UiLocaleProvider initialPreference="en-US">
|
|
<ChannelSettingsSection initialChannel="telegram" projectList={projects}
|
|
onUpdateProject={(id, input) => window.goodbuddy.projects.update(id, input)} />
|
|
</UiLocaleProvider>
|
|
)
|