1.0.0 • Published 7 years ago

telegram-logger v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

logger library for node.js and telegram

API

const telegramLogger = require('telegram-logger')

Create a new logger function using the given telegram bot token and chat_id. The format argument you can get after create bot

The chat_id argument you can get here

Using

const logger = telegramLogger({
  token: '<PUT YOUR TOKEN HERE>',
  chat_id: '<PUT YOUR CHAT ID HERE>',
})

logger('message')
  .then(data => console.log(data))
  .catch(err => console.error(err))