Files
Memoh/internal/channel/capabilities.go
T
BBQ a246b79a4f refactor: restructure channel gateway and chat module architecture
- Refactor channel adapters (feishu, telegram, local) with enhanced descriptor and config
- Restructure channel manager, service, types, and outbound messaging
- Simplify chat module by removing normalize.go and chat.go, consolidating into resolver and types
- Update router channel handlers and tests
- Sync swagger documentation
2026-02-06 23:47:12 +08:00

23 lines
904 B
Go

package channel
// ChannelCapabilities describes the feature matrix of a channel type.
// It is used by the outbound layer to validate message content before delivery.
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"`
}