diff --git a/job.go b/job.go index 6ff7490..3f95ef2 100644 --- a/job.go +++ b/job.go @@ -1587,11 +1587,6 @@ func jobGWithdraw(j Job) { c.Encrypt(out, in) ref := hex.EncodeToString(out) - var userid string - userid = fmt.Sprintf("%d", p.UserID64) - user, err := bot.ChatByID(userid) - logOnError(err, "jobGWithdraw : ChatByID") - var stock string for _, i := range p.Items { if i.Available > i.Required { @@ -1601,7 +1596,7 @@ func jobGWithdraw(j Job) { } } - msg := fmt.Sprintf("To validate @%s withdrawal of%s\nClick /withdraw_%s", user.Username, stock, string(ref)) + msg := fmt.Sprintf("To validate @%s withdrawal of%s\nClick /withdraw_%s", p.User, stock, string(ref)) cmd := TGCommand{ Type: commandReplyMsg,