1.0.0 • Published 9 years ago
telegram-logger v1.0.0
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))1.0.0
9 years ago