1
0
Fork 0
mirror of https://github.com/muerwre/vk-tg-bot.git synced 2025-05-09 05:36:40 +07:00

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
src/service/vk/handlers

View file

@ -4,14 +4,18 @@ import { VkService } from "../index";
import { TelegramService } from "../../telegram";
import { Template } from "../../template";
export class VkEventHandler {
export class VkEventHandler<
F extends Record<string, any> = any,
V extends Record<string, any> = any
> {
public constructor(
protected type: VkEvent,
protected group: ConfigGroup,
protected channel: string,
protected instance: GroupInstance,
protected vk: VkService,
protected telegram: TelegramService,
protected template: Template<any>
protected template: Template<F, V>
) {}
public execute: (