how may i deploy my node js telegram bot with vercel?

Viewed 18

HI I HOPE YOU ARE OKAY

I made a bot with node js using telegraf " everything was working well on my local server " But when i deployed to vercel i had a problem .

i don't get any response from the bot besides the first one and problem of that is the webhook delete automatically when bot send update ; here's the code :

https://github.com/computerGuy11/quran_telegrambot

i tried to delete bot.launch() but the bot stop and don't do anything .

i also tried to POST 200 to URL of the webhook but nothing changed

i also tried bot.launch({ webhook : {url : myurl , PORT: 3000}}) but i got 403 ERROR

this my first bot so i hope someone helps me thank you

0 Answers
Related