feat: remove custom JSON marshaling for Message struct
This commit is contained in:
@@ -140,14 +140,6 @@ type Message struct {
|
|||||||
//parsedStringContent *string
|
//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 MediaContent struct {
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
Text string `json:"text,omitempty"`
|
Text string `json:"text,omitempty"`
|
||||||
|
|||||||
Reference in New Issue
Block a user