mirror of
https://github.com/fumiama/NanoBot.git
synced 2026-06-11 13:40:26 +08:00
fix: qq media
This commit is contained in:
@@ -138,7 +138,6 @@ func (ctx *Ctx) Send(messages Messages) (m []*Message, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
reply, err = ctx.Post(isnextreply, &MessagePost{
|
reply, err = ctx.Post(isnextreply, &MessagePost{
|
||||||
Type: MessageTypeMedia,
|
|
||||||
Content: " ",
|
Content: " ",
|
||||||
Media: &MessageMedia{FileInfo: reply.FileInfo},
|
Media: &MessageMedia{FileInfo: reply.FileInfo},
|
||||||
})
|
})
|
||||||
@@ -186,6 +185,8 @@ func (ctx *Ctx) Post(replytosender bool, post *MessagePost) (reply *Message, err
|
|||||||
post.Type = MessageTypeArk
|
post.Type = MessageTypeArk
|
||||||
case post.Embed != nil:
|
case post.Embed != nil:
|
||||||
post.Type = MessageTypeEmbed
|
post.Type = MessageTypeEmbed
|
||||||
|
case post.Media != nil:
|
||||||
|
post.Type = MessageTypeMedia
|
||||||
default:
|
default:
|
||||||
post.Type = MessageTypeText
|
post.Type = MessageTypeText
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user