WhatsApp bot with JS

benijaichencoTRIAL

8 months ago

Hello! I'm creating a WhatsApp bot using JS with the libraries 'whatsapp-web.js' and 'qrcode-terminal' for a client.

The bot gives information that it fetches from a daily updated sheet in Google Sheets when given commands such as 'class B status' (and it replies with 'student a - in class, student b - in class...' etc).

The only problem I'm facing is deploying it.

The bot needs to run 24/7 and not be dependent on my computer.

I'm very new to this topic since this is the first time I'm required to create a script that runs 24/7.

I don't know if I could achieve that for free, if I need to tell the client that he should open a server on his own, or if I need to take care of all of that.

It's not a client with a contract, just some client that came to me from a friend's suggestion.

Solved

4 Replies

8 months ago

Hello,

I'm sorry to say this but WhatsApp bots are generally not allowed unless you are using the official API from meta.

If you aren't, that would fall under being a userbot - https://railway.app/legal/fair-use


mh8974PRO

4 months ago

.


brody

Hello,I'm sorry to say this but WhatsApp bots are generally not allowed unless you are using the official API from meta.If you aren't, that would fall under being a userbot - https://railway.app/legal/fair-use

mh8974PRO

4 months ago

Oh, so Whatsapp Cloud API is allowed? Great. I was on the brink of migrating from Railway coz I just found out whatsapp bots aren't allowed.


4 months ago

I only know of the official API from Meta, if the WhatsApp Cloud API is provided by Meta, then yes that's allowed.

Typically people use packages that use puppeteer to act as a userbot, hence WhatsApp bots not be allowed, or even unofficial API endpoints, also making it not allowed.


Status changed to Solved brody 4 months ago


WhatsApp bot with JS - Railway Help Station