From 09d7496c930659a60edf790d06850d0c8f0c8168 Mon Sep 17 00:00:00 2001 From: Nefrace Date: Sun, 10 Sep 2023 13:31:41 +0300 Subject: [PATCH] fixed delete timer --- kicker/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kicker/handlers.go b/kicker/handlers.go index 8bcabff..8965e3d 100644 --- a/kicker/handlers.go +++ b/kicker/handlers.go @@ -152,7 +152,7 @@ func checkCaptcha(b *bot, update *echotron.Update) error { if err != nil { log.Printf("Can't send welcome message: %s", err) } - go waitAndDelete(&b.API, res.Result, timeout*time.Second) + go waitAndDelete(&b.API, res.Result, timeout) // time.Sleep(time.Second * 10) // _, err = b.DeleteMessage(message.Chat.ID, res.Result.ID) if err != nil {