feat: remove custom JSON marshaling for Message struct

This commit is contained in:
CaIon
2025-08-09 21:04:49 +08:00
parent a47fc5a76b
commit 50f9195f2d

View File

@@ -140,14 +140,6 @@ type Message struct {
//parsedStringContent *string
}
func (m *Message) MarshalJSON() ([]byte, error) {
if m.Content == nil {
m.Content = ""
}
type Alias Message
return json.Marshal((*Alias)(m))
}
type MediaContent struct {
Type string `json:"type"`
Text string `json:"text,omitempty"`