2.0.2 • Published 2 years ago

@ryanforever/telegram-logger v2.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

rf-telegram-logger

image

log to the Telegram app!


usage

1) Download Telegram, if you don't already have it. 2) Start a chat with @NodeLoggerBot 3) Get the id of the chat by typing /chatid 4) 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()

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago