DrugoLebowski / telegraf-logger

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example Usage

const Telegraf = require('telegraf');
const TelegrafLogger = require('telegraf-logger');


const bot = new Telegraf('TOKEN');

// Pass the desired logger in this way
const Logger = new TelegrafLogger({log: AwesomeLogger.log});

// To attach the middleware to the bot call the .middleware() function
bot.use(Logger.middleware());

About

License:MIT License


Languages

Language:JavaScript 100.0%