update
This commit is contained in:
+1
-2
@@ -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)}
|
||||
|
||||
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user