This commit is contained in:
shoopea 2019-06-11 23:55:31 +08:00
parent 6da33a53e4
commit fc63ef8fbc
2 changed files with 4 additions and 2 deletions

2
bot.go
View File

@ -301,7 +301,7 @@ func botBackupImport(m *tb.Message) {
return
}
p := JobPayloadBackupExport{
p := JobPayloadBackupImport{
URL: m.Payload,
MsgID64: int64(m.ID),
ChatID64: m.Chat.ID,

4
job.go
View File

@ -11,6 +11,8 @@ import (
"strconv"
"strings"
"time"
tb "gopkg.in/tucnak/telebot.v2"
)
func createJob(jobTypeID int32, priority int32, userID64 int64, schedule time.Time, payload []byte) (int64, error) {
@ -582,7 +584,7 @@ func jobBackupImport(j Job) {
}
}
m := TGCommand{
m = TGCommand{
Type: commandReplyMsg,
Text: "Not backup file found in archive.",
FromMsgID64: p.MsgID64,