diff --git a/src/nim_censor_bot.nim b/src/nim_censor_bot.nim index 22b6daa..2616bf5 100644 --- a/src/nim_censor_bot.nim +++ b/src/nim_censor_bot.nim @@ -221,4 +221,4 @@ bot.onUpdate(updateHandler) bot.onCommand("start", startHandler) bot.onCommand("ban", banHandler) bot.onCommand("unban", unbanHandler) -bot.poll(timeout=300) +bot.startWebhook(getEnv("HOOK_SECRET"), getEnv("HOOK_DOMAIN") & "/" & getEnv("HOOK_SECRET"))