1.0.2 • Published 3 years ago

loggram v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

📘 Usage

First, you need to create a Telegram bot. How to Create

After creating the bot, you need to get a chat id. How to Get

Then, you can start implementing the Loggram.

📘 Example

const Loggram = require('loggram')

var loggram = new Loggram(TELEGRAM_BOT_TOKEN, TELEGRAM_CHAT_ID);
loggram.sendLog('Hello World!').then(res => {
    console.log(res);
}).catch(err => {
    console.log(err);
});

📘 Options

sendLog(appName, type, message){
  //appName optional
  //type optional ('info', 'error', 'warning', 'success')
  //message required
};

sendLog(message){
  //message required
};

🚀 Technologies

This project was developed with the following technologies:

📄 License

This project is under the MIT license. See the LICENSE for more information.

💻 Author