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:
parent
95ed64c640
commit
eb6a645ad3
10 changed files with 112 additions and 17 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue