telegram and whatsapp channel integrations, validate bot tokens before saving

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-27 08:53:01 +00:00
co-authored by Claude Opus 4.6
parent bc4c20929c
commit b698e3d962
15 changed files with 2571 additions and 40 deletions
@@ -11,18 +11,74 @@ import { GoogleOAuthConfig } from './GoogleOAuthConfig';
import { GoogleAccount } from './GoogleAccount';
import { DiscordBotConfig } from './DiscordBotConfig';
import { DiscordAccount } from './DiscordAccount';
import { TelegramBotConfig } from './TelegramBotConfig';
import { TelegramAccount } from './TelegramAccount';
import { WhatsAppBotConfig } from './WhatsAppBotConfig';
import { WhatsAppAccount } from './WhatsAppAccount';
const GLOBAL_KEY = 'INTEGRATIONS_SETTINGS_SELECTED';
const TAB_KEY = 'INTEGRATIONS_SETTINGS_TAB';
const enterpriseSections: SettingsSection[] = [
{ key: 'google-oauth', icon: KeyRound, title: 'Google OAuth', description: 'Client ID and secret for Google APIs', content: <GoogleOAuthConfig /> },
{ key: 'discord-bot', icon: MessageCircle, title: 'Discord Bot', description: 'Bot token for Discord integration', content: <DiscordBotConfig /> },
{
key: 'google-oauth',
icon: KeyRound,
title: 'Google OAuth',
description: 'Client ID and secret for Google APIs',
content: <GoogleOAuthConfig />,
},
{
key: 'discord-bot',
icon: MessageCircle,
title: 'Discord Bot',
description: 'Bot token for Discord integration',
content: <DiscordBotConfig />,
},
{
key: 'telegram-bot',
icon: MessageCircle,
title: 'Telegram Bot',
description: 'Bot token for Telegram integration',
content: <TelegramBotConfig />,
},
{
key: 'whatsapp-bot',
icon: MessageCircle,
title: 'WhatsApp',
description: 'WhatsApp Web connection',
content: <WhatsAppBotConfig />,
},
];
const personalSections: SettingsSection[] = [
{ key: 'google-account', icon: UserCircle, title: 'Google Account', description: 'Connect your Google account', content: <GoogleAccount /> },
{ key: 'discord-account', icon: MessageCircle, title: 'Discord', description: 'Link your Discord account', content: <DiscordAccount /> },
{
key: 'google-account',
icon: UserCircle,
title: 'Google Account',
description: 'Connect your Google account',
content: <GoogleAccount />,
},
{
key: 'discord-account',
icon: MessageCircle,
title: 'Discord',
description: 'Link your Discord account',
content: <DiscordAccount />,
},
{
key: 'telegram-account',
icon: MessageCircle,
title: 'Telegram',
description: 'Link your Telegram account',
content: <TelegramAccount />,
},
{
key: 'whatsapp-account',
icon: MessageCircle,
title: 'WhatsApp',
description: 'Link your WhatsApp account',
content: <WhatsAppAccount />,
},
];
const IntegrationsSidebar = () => {