Connect SWAYAM to WhatsApp, Telegram, and Slack
https://swayam.digimitra.guru/webhook/{channel}
Business API Integration
Bot Integration
Workspace App
1. Create a Twilio account at twilio.com 2. Enable WhatsApp Sandbox or Business API 3. Set webhook URL to: https://swayam.digimitra.guru/webhook/whatsapp/twilio 4. Configure environment variables: TWILIO_ACCOUNT_SID=your_account_sid TWILIO_AUTH_TOKEN=your_auth_token TWILIO_WHATSAPP_NUMBER=+14155238886
1. Message @BotFather on Telegram
2. Create new bot with /newbot
3. Copy the bot token
4. Set webhook:
curl -X POST "https://api.telegram.org/bot{TOKEN}/setWebhook?url=https://swayam.digimitra.guru/webhook/telegram"
5. Configure:
TELEGRAM_BOT_TOKEN=your_bot_token
1. Create app at api.slack.com/apps 2. Enable Event Subscriptions with URL: https://swayam.digimitra.guru/webhook/slack/events 3. Subscribe to: message.channels, app_mention 4. Add OAuth scopes: chat:write, app_mentions:read 5. Install to workspace 6. Configure: SLACK_BOT_TOKEN=xoxb-... SLACK_SIGNING_SECRET=...