Add Telegram and Discord IM channels

This commit is contained in:
xmanrui 2026-08-16 14:47:16 +08:00
parent 7123fce47a
commit cb74e1c4c7
66 changed files with 8579 additions and 1910 deletions

View file

@ -15,11 +15,15 @@ const required = [
'plugin-src/host/channels/dingtalk/index.mjs',
'plugin-src/host/channels/qq/index.mjs',
'plugin-src/host/channels/wecom/index.mjs',
'plugin-src/host/channels/telegram/index.mjs',
'plugin-src/host/channels/discord/index.mjs',
'src/channels/feishu/feishu-runtime.mjs',
'src/channels/weixin/weixin-runtime.mjs',
'src/channels/dingtalk/dingtalk-runtime.mjs',
'src/channels/qq/qq-runtime.mjs',
'src/channels/wecom/wecom-runtime.mjs',
'src/channels/telegram/telegram-runtime.mjs',
'src/channels/discord/discord-runtime.mjs',
];
await Promise.all(required.map((path) => access(resolve(root, path))));
@ -51,7 +55,7 @@ if (!client.includes('container-type: inline-size')
|| !client.includes('@container (max-width: 680px)')) {
throw new Error('client bundle does not contain the narrow-panel DingTalk QR layout');
}
for (const marker of ['/feishu', '/weixin', '/dingtalk', '/wecom', '/qq']) {
for (const marker of ['/feishu', '/weixin', '/dingtalk', '/wecom', '/qq', '/telegram', '/discord']) {
if (!host.includes(marker)) {
throw new Error(`host bundle does not contain the internal ${marker} RPC provider`);
}