From 593d15ee554e2d86c8801da3d2ae74d9906db8fc Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Sat, 23 Oct 2021 14:16:14 +0800 Subject: [PATCH] update --- im/tg/tg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/im/tg/tg.go b/im/tg/tg.go index 7ca0300..ab075c6 100644 --- a/im/tg/tg.go +++ b/im/tg/tg.go @@ -292,7 +292,7 @@ func (sender *Sender) Reply(msgs ...interface{}) (int, error) { for index, path := range paths { if strings.Contains(path, "base64") { - decodeBytes, err := base64.StdEncoding.DecodeString(path) + decodeBytes, err := base64.StdEncoding.DecodeString(strings.Replace(path, "base64://", "", -1)) if err != nil { sender.Reply(path[len(path)-20:]) sender.Reply(err)