diff --git a/job.go b/job.go index 0799c64..e5efa89 100644 --- a/job.go +++ b/job.go @@ -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)