Setup
You will need:- A Viber bot account. Make a note of the auth token.
- An active webhooks server that can receive POST requests from Viber. Viber provides a Node.js utility for handling these requests.
Webhooks Server
Before sending notifications, Viber requires a webhooks server to be registered:Profile Requirements
To send a direct message to a user, supply the ViberUserID to the viber.receiver property of the recipient profile. The recipient must have an active Viber account. The UserID is sent to your webhooks server after a user messages the Viber bot.