update
This commit is contained in:
+2
-1
@@ -290,7 +290,8 @@ func (sender *Sender) Reply(msgs ...interface{}) (int, error) {
|
|||||||
if len(paths) > 0 {
|
if len(paths) > 0 {
|
||||||
is := []tb.InputMedia{}
|
is := []tb.InputMedia{}
|
||||||
for index, path := range paths {
|
for index, path := range paths {
|
||||||
if strings.Contains(message, "base64") {
|
if strings.Contains(path, "base64") {
|
||||||
|
|
||||||
decodeBytes, _ := base64.StdEncoding.DecodeString(path)
|
decodeBytes, _ := base64.StdEncoding.DecodeString(path)
|
||||||
i := &tb.Photo{File: tb.FromReader(bytes.NewReader(decodeBytes))}
|
i := &tb.Photo{File: tb.FromReader(bytes.NewReader(decodeBytes))}
|
||||||
if index == 0 {
|
if index == 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user