Spaces:
Sleeping
Sleeping
| 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"` | |
| AudioPath string `json:"audio_path,omitempty"` // Path to audio file to send | |
| } | |
| type MessageHandler func(InboundMessage) error | |