Skip to content

Commit

Permalink
Fix time unit for EDIT_TIME_SECONDS (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
wisdom-yzh authored Dec 12, 2022
1 parent 9d23a22 commit 49dd170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 49dd170

Please sign in to comment.