2/8/2024 0 Comments Viber call logsBot const BotEvents = require ( ' viber-bot ' ). Call setWebhook(url) with your web server urlįirstly, let’s import and configure our bot: ' use strict ' const ViberBot = require ( ' viber-bot ' ).Add the bot as middleware to your server with bot.middleware().Configure your bot as described in the documentation below.Create a bot and use the authentication token from.Import viber-bot library to your project.middleware ()) įor more information see ViberBot.middleware(). If you are already using express or equivalent, you can do the following: app. Install with npm install viber-bot -save Express Read our blog post on how to test your bot locally. If you deploy on your own custom server, you’ll need a trusted (ca.pem) certificate, not self-signed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |