This commit is contained in:
cdle
2021-10-23 14:06:40 +08:00
parent dd302a50a6
commit 87775e34fd
+2 -1
View File
@@ -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 {