打开 @BotFather,发送 /newbot,复制生成的 HTTP API token。
在 .env 中设置 TELEGRAM_BOT_TOKEN,并在 config.yaml 里启用该渠道。
Slack 配置
前往 api.slack.com/apps 创建 Slack App:Create New App → From scratch。
在 OAuth & Permissions 中添加 Bot Token Scopes:app_mentions:read、chat:write、im:history、im:read、im:write、files:write。
启用 Socket Mode,生成带 connections:write 权限的 App-Level Token(xapp-...)。
在 Event Subscriptions 中订阅 bot events:app_mention、message.im。
在 .env 中设置 SLACK_BOT_TOKEN 和 SLACK_APP_TOKEN,并在 config.yaml 中启用该渠道。
紫米美村