- Go to https://partners.viber.com and log in with your viber account.
- Create your own bot.
- set
VIBER_AUTH_TokenandBOT_NAMEin.env.localfor your own - to send a message POST a JSON in body
{ text: "Here is the message" }tolocalhost:4040/test
- Deploy on your own heroku (set the abobe variables)
- scan the barcode from the viber admin panel and from hamburger menu, select receive messages (this should subscribe you)
- run locally with nodemon
nodemon index.js(npm i -g nodemonif you don't have it)
(requires public mobile number)
- deploy on HEROKU
- change the A / CNAME Records
- share the link on your website