Enable webhooks on bot

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2022-04-11 15:45:01 +05:30
parent b90725d35b
commit 3e5c1b415f
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5

View file

@ -221,4 +221,4 @@ bot.onUpdate(updateHandler)
bot.onCommand("start", startHandler) bot.onCommand("start", startHandler)
bot.onCommand("ban", banHandler) bot.onCommand("ban", banHandler)
bot.onCommand("unban", unbanHandler) bot.onCommand("unban", unbanHandler)
bot.poll(timeout=300) bot.startWebhook(getEnv("HOOK_SECRET"), getEnv("HOOK_DOMAIN") & "/" & getEnv("HOOK_SECRET"))