Files
Memoh/internal/channel/capabilities.go
T
BBQ 5a35ef34ac feat: channel gateway implementation and multi-bot refactor
- Refactor channel manager with support for Sender/Receiver interfaces and hot-swappable adapters.
- Implement identity routing and pre-authentication logic for inbound messages.
- Update database schema to support bot pre-auth keys and extended channel session metadata.
- Add Telegram and Feishu channel configuration and adapter enhancements.
- Update Swagger documentation and internal handlers for channel management.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-06 14:41:54 +08:00

23 lines
897 B
Go

package channel
// ChannelCapabilities 描述通道在功能层面的能力矩阵。
// 该结构用于上层自适应逻辑,不依赖具体适配器实现。
type ChannelCapabilities struct {
Text bool `json:"text"`
Markdown bool `json:"markdown"`
RichText bool `json:"rich_text"`
Attachments bool `json:"attachments"`
Media bool `json:"media"`
Reactions bool `json:"reactions"`
Buttons bool `json:"buttons"`
Reply bool `json:"reply"`
Threads bool `json:"threads"`
Streaming bool `json:"streaming"`
Polls bool `json:"polls"`
Edit bool `json:"edit"`
Unsend bool `json:"unsend"`
NativeCommands bool `json:"native_commands"`
BlockStreaming bool `json:"block_streaming"`
ChatTypes []string `json:"chat_types,omitempty"`
}