Hello. I'm struggling with a micro-bot setup on Zeit Now and tried many different configs but get no result. I'm newbie on both Now and Telegraf, BTW I can run a simple echo web server on the same Now project but no success with bot code. It doesn't give any error when deploying and bot doesn't work at all. I don't know where I went wrong
This is all the code and files:
index.js: I used different codes such as this simple lines
Hello. I'm struggling with a micro-bot setup on Zeit Now and tried many different configs but get no result. I'm newbie on both Now and Telegraf, BTW I can run a simple echo web server on the same Now project but no success with bot code. It doesn't give any error when deploying and bot doesn't work at all. I don't know where I went wrong This is all the code and files:
index.js: I used different codes such as this simple lines
packages.json
now.json
And my deploy command:
I don't know if the bot automatically sets Webhook, so I did it manually. https://api.telegram.org/botMYTOKEN/setWebhook?url=https://projecturl.me.now.sh