Node.js TamTam Bot API
Module to interact with official TamTam Bot API.
Install
npm install --save node-tamtam-botapi
Usage
const TamTamBot = ;const express = ;const bodyParser = ; const appName = processenvHEROKU_APP_NAME || 'HEROKU_APP_NAME';const path = processenvHEROKU_APP_PATH || 'HEROKU_APP_PATH'; const config = token: processenvTOKEN host: processenvHOST version: processenvAPI_VERSION; const bot = config;const app = ;const PORT = processenvPORT || 3000; app; const subscribeBody = url: `https://.herokuapp.com/`; //Subscribes bot to receive updates via WebHookbot; // We are receiving updates at the route below!app; // Start Express Serverapp; const message = text: 'Hello! this is a test message';bot;
License
The MIT License (MIT)
Copyright © 2020 vershininivan