This commit is contained in:
cdle
2021-10-07 14:48:58 +08:00
parent 5bb20d290d
commit 5151da8607
2 changed files with 1 additions and 3 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
package qq
import (
"bytes"
"crypto/md5"
"fmt"
"os"
@@ -283,7 +282,7 @@ func start() {
}
imgs := []message.IMessageElement{}
for _, path := range paths {
imgs = append(imgs, &coolq.LocalImageElement{Stream: bytes.NewReader([]byte(path))})
imgs = append(imgs, &coolq.LocalImageElement{File: path})
}
//
bot.SendGroupMessage(int64(i), &message.SendingMessage{Elements: append(bot.ConvertStringMessage(s, true), imgs...)}) //&message.AtElement{Target: int64(j)}
-1
View File
@@ -116,7 +116,6 @@ func init() {
// b.Send(m.Chat, m.Caption+" "+m.AlbumID)
// b.Download()
m.Text = fmt.Sprintf(`[TG:image,file=%s]`, filename) + m.Caption
core.NotifyMasters(m.Text)
Handler(m)
// b.Forward(m.Chat, m)
})