This commit is contained in:
shoopea 2020-01-16 21:41:06 +08:00
parent 5db50c1d33
commit 93b29aab43

8
job.go
View File

@ -1587,15 +1587,13 @@ func jobGWithdraw(j Job) {
c.Encrypt(out, in)
ref := hex.EncodeToString(out)
c := TGCommand{
cmd := TGCommand{
Type: commandReplyMsg,
Text: fmt.Sprintf("/withdraw_%s", ref),
Text: fmt.Sprintf("/withdraw_%s", string(ref)),
FromMsgID64: p.MsgID64,
FromChatID64: pChatID64,
}
TGCmdQueue <- c
log.Printf("jobGWithdraw[%d] : got all the info for ref %s\n", j.ID64, string(ref))
TGCmdQueue <- cmd
}
err = setJobDone(j.ID64)