fix: revert contentType in API msg (#3509)

This commit is contained in:
Monet Lee 2025-08-13 17:01:27 +08:00 committed by GitHub
parent d817cb0ffd
commit d542df7000
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -219,6 +219,8 @@ func (m *MessageApi) getSendMsgReq(c *gin.Context, req apistruct.SendMsg) (sendM
data = &apistruct.CustomElem{} data = &apistruct.CustomElem{}
case constant.MarkdownText: case constant.MarkdownText:
data = &apistruct.MarkdownTextElem{} data = &apistruct.MarkdownTextElem{}
case constant.Quote:
data = &apistruct.QuoteElem{}
case constant.OANotification: case constant.OANotification:
data = &apistruct.OANotificationElem{} data = &apistruct.OANotificationElem{}
req.SessionType = constant.NotificationChatType req.SessionType = constant.NotificationChatType