Commit 4abe75fa by CaIon

feat: remove custom JSON marshaling for Message struct

parent 5a3f011a
......@@ -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"`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment