diff --git a/im/qq/main.go b/im/qq/main.go index 5c95a23..4369a51 100644 --- a/im/qq/main.go +++ b/im/qq/main.go @@ -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)} diff --git a/im/tg/tg.go b/im/tg/tg.go index 9a5746d..cda2047 100644 --- a/im/tg/tg.go +++ b/im/tg/tg.go @@ -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) })