This commit is contained in:
shoopea 2019-05-26 21:07:28 +08:00
parent 01df375e0a
commit 41a51fd7f5
2 changed files with 3 additions and 3 deletions

4
bot.go
View File

@ -286,8 +286,8 @@ func botTimer(m *tb.Message) {
} else {
log.Printf("Timer : Event : %s\n", time.Now().Add(d).Format(time.RFC850))
c := TGCommand{
Type: commandSendMsg,
Text: "", r.ReplaceAllString(m.Payload, "${Msg}"),
Type: commandSendMsg,
Text: r.ReplaceAllString(m.Payload, "${Msg}"),
FromUserID64: m.Chat.ID,
ToChatID64: userID64ChtWrsBot,
}

2
job.go
View File

@ -131,7 +131,7 @@ func jobMsgClient(j Job) {
MQTGCmdQueue <- c
err := setJobDone(j.ID64)
err = setJobDone(j.ID64)
logOnError(err, "joMsgClient : setJobDone")
return
}