1
0
Fork 0
mirror of https://github.com/muerwre/vk-tg-bot.git synced 2025-05-10 06:06:41 +07:00

#1 added handlebars template engine

This commit is contained in:
Fedor Katurov 2021-04-29 10:30:01 +07:00
parent 95ed64c640
commit eb6a645ad3
10 changed files with 112 additions and 17 deletions

View file

@ -2,9 +2,7 @@ import { MiddlewareFn } from "telegraf";
import logger from "./index";
const loggerTgMiddleware: MiddlewareFn<any> = async (ctx, next) => {
logger.debug(
`received tg message from @${ctx.message.from.username}: ${ctx.message.text}`
);
logger.debug(`received tg message`, ctx);
await next().catch(logger.warn);
};