yagop / node-telegram-bot-api

Telegram Bot API for NodeJS
MIT License
8.37k stars 1.52k forks source link

Question : Run a bot on Serverless infrastructure #776

Closed aorfevre closed 2 years ago

aorfevre commented 4 years ago

Question Can we run a bot in a serverless infrastructure ? Example on GCP Cloud Run or AWS Lambda ?

I have been reading a lot currently that part and I still can not find any topics or answers . Sounds like it is not doable but I would like to have a community confirmation to move on that part.

Thank you all for your feedbacks

kamikazechaser commented 4 years ago

Yes it can there are lots of people writing blog posts on this.

rafaelfaria commented 2 years ago

That was a rather vague response. Where are all these bogs people posting? Would you be able to list the ones you know?

kamikazechaser commented 2 years ago

That was a rather vague response. Where are all these bogs people posting? Would you be able to list the ones you know?

I googled "vercel serverless telegram bot" and the first result uses ntba (https://www.marclittlemore.com/serverless-telegram-chatbot-vercel/)

Also, we already have multiple examples in this repo (https://github.com/yagop/node-telegram-bot-api/blob/master/examples/webhook/now.js) including Now.sh (Now known as Vercel) serverless example. The rest of the examples can also be extended to pretty much all serverless providers supporting Node.js as it is about request lifecycles.