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 {