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) }