Platform Setup Guides: Telegram, WhatsApp, Discord & Slack
Moltbot supports 13+ messaging platforms. This guide covers the four most popular ones with detailed setup instructions.
Telegram Setup
Telegram is the most popular platform for Moltbot. Setup takes about 5 minutes using BotFather.
Create a Bot with BotFather
Open Telegram, search for @BotFather, and send /newbot. Follow the prompts to choose a name and username (must end in 'bot'). Copy the token provided.
# BotFather will give you a token like:
# 123456789:ABCdefGHIjklMNOpqrsTUVwxyzConfigure Moltbot
Add your Telegram bot token to the Moltbot configuration. You can do this during onboarding or manually in the config file.
# Store token securely in vault
moltbot vault set TELEGRAM_BOT_TOKEN "your-token-here"
# Or add to config.yaml:
channels:
telegram:
enabled: true
botToken: "${TELEGRAM_BOT_TOKEN}"
dmPolicy: pairingStart Chatting
Find your bot on Telegram and send a message. You'll receive a pairing code—approve it with the CLI to start using Moltbot.
# Approve pairing code
moltbot pairing approve telegram YOUR_CODEWhatsApp Setup
Connect Moltbot to WhatsApp using the WhatsApp Web bridge. This requires scanning a QR code with your phone.
Enable WhatsApp Channel
WhatsApp uses a web bridge connection. Enable it in your Moltbot config and restart the Gateway.
# In config.yaml:
channels:
whatsapp:
enabled: true
dmPolicy: pairingScan QR Code
After enabling, Moltbot will display a QR code in the terminal. Open WhatsApp on your phone, go to Settings > Linked Devices, and scan the code.
Send a Test Message
Send yourself a message on WhatsApp. Moltbot will see it and respond. DM pairing applies—approve the pairing code to enable full access.
Discord Setup
Run Moltbot as a Discord bot in your personal server or DMs.
Create a Discord Application
Go to the Discord Developer Portal, create a new application, and create a bot. Copy the bot token and enable the Message Content intent.
# Discord Developer Portal:
# https://discord.com/developers/applicationsInvite Bot to Server
Generate an OAuth2 URL with bot permissions (Send Messages, Read Message History) and invite the bot to your server.
# Configure in config.yaml:
channels:
discord:
enabled: true
botToken: "${DISCORD_BOT_TOKEN}"
dmPolicy: pairingStart Using
Mention your bot or send a DM in Discord. Approve the pairing code and you're ready to go.
Slack Setup
Add Moltbot to your Slack workspace as a bot that responds in channels or DMs.
Create a Slack App
Go to api.slack.com/apps, create a new app, and configure bot scopes (chat:write, channels:read, im:read, im:write). Install to your workspace.
# Required bot scopes:
# chat:write, channels:read, channels:history
# im:read, im:write, im:historyConfigure Moltbot
Add your Slack bot token and signing secret to Moltbot. The bot will connect using Socket Mode for real-time messaging.
# Store Slack credentials
moltbot vault set SLACK_BOT_TOKEN xoxb-...
moltbot vault set SLACK_SIGNING_SECRET abc...
# In config.yaml:
channels:
slack:
enabled: trueStart Using in Slack
Invite the bot to a channel with /invite @moltbot, or send a direct message. The bot will respond and process your requests.
More Platforms
Moltbot also supports Signal, iMessage, WeChat, Google Chat, Microsoft Teams, Matrix, and more. Check the official documentation for setup guides.
View Full Documentation