mirror of
https://github.com/muerwre/vk-tg-bot.git
synced 2025-05-09 05:36:40 +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
src/service/vk/handlers
|
@ -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: (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue