Quick Setup¶
Telegram (30 seconds)¶
- Message @BotFather →
/newbot→ copy token - Add to
bots.json→ done (long polling, no webhooks)
{
"telegramBots": [{
"name": "my-tg-bot",
"telegramBotToken": "123456:ABC...",
"defaultWorkingDirectory": "/home/user/project"
}]
}
Feishu/Lark (4 steps)¶
- Create app at open.feishu.cn → add Bot capability
- Enable permissions:
im:message,im:message:readonly,im:resource,im:chat:readonly(for group chat detection),docx:document:readonly,wiki:wiki(for doc reading & wiki sync) - Start MetaBot, then enable persistent connection +
im.message.receive_v1event - Publish the app
{
"feishuBots": [{
"name": "metabot",
"feishuAppId": "cli_xxx",
"feishuAppSecret": "...",
"defaultWorkingDirectory": "/home/user/project"
}]
}
No public IP needed
Feishu uses WebSocket (persistent connection), Telegram uses long polling. Both work behind NAT/firewalls.
For detailed Feishu configuration, see the Feishu App Setup Guide.