1
0
mirror of https://github.com/fumiama/NanoBot.git synced 2026-06-05 02:30:23 +08:00

fix: qq media

This commit is contained in:
源文雨
2023-11-22 17:48:42 +09:00
parent b79077c9d7
commit 927ab1180d

View File

@@ -138,7 +138,6 @@ func (ctx *Ctx) Send(messages Messages) (m []*Message, err error) {
return
}
reply, err = ctx.Post(isnextreply, &MessagePost{
Type: MessageTypeMedia,
Content: " ",
Media: &MessageMedia{FileInfo: reply.FileInfo},
})
@@ -186,6 +185,8 @@ func (ctx *Ctx) Post(replytosender bool, post *MessagePost) (reply *Message, err
post.Type = MessageTypeArk
case post.Embed != nil:
post.Type = MessageTypeEmbed
case post.Media != nil:
post.Type = MessageTypeMedia
default:
post.Type = MessageTypeText
}