telegram-logger
v1.0.0
Published
An npm package for logging to telegram bot
Downloads
1
Readme
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))