From 2942d755d83ea5432b9984d2f0fac338aaa8717d Mon Sep 17 00:00:00 2001 From: shoopea Date: Mon, 29 Jun 2020 10:33:47 +0200 Subject: [PATCH] test stash --- job.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/job.go b/job.go index 631f8ad..a0b0433 100644 --- a/job.go +++ b/job.go @@ -2129,6 +2129,16 @@ func jobGetStash(j Job) { setJobCallback(j.ID64, userID64, cacheObjSubType[`msg_busy`]) rescheduleJob(j.ID64, 0, time.Unix(maxUnixTimestamp, 0).UTC()) clientSendCWMsgDelay(userID64, "âš–Exchange", busyUntil.Add(2*time.Second).Sub(time.Now().UTC())) + + c := TGCommand{ + Type: commandReplyMsg, + Text: fmt.Sprintf("Client[%d/%d] : %d", (p.ClientCount - len(p.ClientID64) + 1), p.ClientCount, userID64), + FromMsgID64: p.MsgID64, + FromChatID64: p.ChatID64, + ParseMode: cmdParseModeHTML, + } + TGCmdQueue <- c + return } if len(p.ClientID64) == 0 && j.Trigger == 0 {