From 87775e34fd5e866ef0ad070a80e8cdf73afb5498 Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Sat, 23 Oct 2021 14:06:40 +0800 Subject: [PATCH] update --- im/tg/tg.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/im/tg/tg.go b/im/tg/tg.go index b57be43..6dc6c93 100644 --- a/im/tg/tg.go +++ b/im/tg/tg.go @@ -290,7 +290,8 @@ func (sender *Sender) Reply(msgs ...interface{}) (int, error) { if len(paths) > 0 { is := []tb.InputMedia{} for index, path := range paths { - if strings.Contains(message, "base64") { + if strings.Contains(path, "base64") { + decodeBytes, _ := base64.StdEncoding.DecodeString(path) i := &tb.Photo{File: tb.FromReader(bytes.NewReader(decodeBytes))} if index == 0 {