picoclaw/docs/channels/slack/README.vi.md
dj-oyu 31376d2961 merge: sync upstream/main
Merge upstream/main (c0bb8d6) into fork. Key upstream changes:
- SSE streaming support (Telegram sendMessageDraft, channel StreamDelegate)
- Pico client outbound WebSocket channel
- Smarter heartbeat task detection (heartbeatHasUserTasks)
- Separate tool-limit vs empty-response messages
- TUI launcher refactoring with cyberpunk theme
- Android fallback DNS resolver
- Improved docs translations

Conflict resolution:
- Kept fork's channel-based StreamingProvider interface and ChatStream API
- Kept fork's buildHTTPRequest (superset of upstream's buildRequestBody)
- Merged upstream's streamActive tracking alongside fork's draft-based streaming
- Added upstream's parser_markdown_to_html.go for new Telegram streaming
- Resolved duplicate declarations (MessageDeleter, escapeHTML, DeleteMessage)
- Adopted upstream's resolveScopeKey prefix-gated behavior

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 09:23:04 +09:00

1.6 KiB

Quay lại README

Slack

Slack là nền tảng nhắn tin tức thì hàng đầu dành cho doanh nghiệp. PicoClaw sử dụng Socket Mode của Slack để giao tiếp hai chiều theo thời gian thực, không cần cấu hình endpoint webhook công khai.

Cấu hình

{
  "channels": {
    "slack": {
      "enabled": true,
      "bot_token": "xoxb-...",
      "app_token": "xapp-...",
      "allow_from": []
    }
  }
}
Trường Kiểu Bắt buộc Mô tả
enabled bool Có bật kênh Slack hay không
bot_token string Bot User OAuth Token của Slack bot (bắt đầu bằng xoxb-)
app_token string App Level Token Socket Mode của ứng dụng Slack (bắt đầu bằng xapp-)
allow_from array Không Danh sách trắng ID người dùng; để trống cho phép tất cả

Quy trình thiết lập

  1. Truy cập Slack API và tạo một ứng dụng Slack mới
  2. Bật Socket Mode và lấy App Level Token
  3. Thêm Bot Token Scopes (ví dụ: chat:write, im:history, v.v.)
  4. Cài đặt ứng dụng vào workspace và lấy Bot User OAuth Token
  5. Điền Bot Token và App Token vào file cấu hình