From 49dd1705127894b7892633c5b1e54b27d6ca5e83 Mon Sep 17 00:00:00 2001 From: wisdom Date: Tue, 13 Dec 2022 01:02:33 +0800 Subject: [PATCH] Fix time unit for EDIT_TIME_SECONDS (#60) --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index ccc1e77..e6e5722 100644 --- a/main.go +++ b/main.go @@ -42,7 +42,7 @@ func main() { log.Fatalf("Invalid .env config: %v", err) } - bot, err := tgbot.New(envConfig.TelegramToken, time.Duration(envConfig.EditWaitSeconds)) + bot, err := tgbot.New(envConfig.TelegramToken, time.Duration(envConfig.EditWaitSeconds*int(time.Second))) if err != nil { log.Fatalf("Couldn't start Telegram bot: %v", err) }