Initial commit for ClawGo

This commit is contained in:
DBT
2026-02-12 02:57:27 +00:00
commit 4956b1a014
60 changed files with 9991 additions and 0 deletions

19
pkg/bus/types.go Normal file
View File

@@ -0,0 +1,19 @@
package bus
type InboundMessage struct {
Channel string `json:"channel"`
SenderID string `json:"sender_id"`
ChatID string `json:"chat_id"`
Content string `json:"content"`
Media []string `json:"media,omitempty"`
SessionKey string `json:"session_key"`
Metadata map[string]string `json:"metadata,omitempty"`
}
type OutboundMessage struct {
Channel string `json:"channel"`
ChatID string `json:"chat_id"`
Content string `json:"content"`
}
type MessageHandler func(InboundMessage) error