@ryanforever/telegram-logger
v2.0.2
Published
log to telegram
Downloads
4
Readme
rf-telegram-logger
log to the Telegram app!
usage
- Download Telegram, if you don't already have it.
- Start a chat with @NodeLoggerBot
- Get the id of the chat by typing
/chatid
- ~~Get a token by typing
/token
~~ COMING SOON
const TelegramLogger = require("rf-telegram-logger");
const telegramLogger = new TelegramLogger({
name: "log name", // name will show up in the log
token: "bot token",
chatid: "chatid" // telegram chatid of where you want it to log to
});
telegramLogger.log("hello world")
// override log name
telegramLogger.log("hello world", "alt log name")
methods
.log()
.info()
.warn()
.error()
.debug()