1
0
Fork 0
mirror of https://github.com/muerwre/vk-tg-bot.git synced 2025-04-25 06:56:40 +07:00

#4 made strict type checking

This commit is contained in:
Fedor Katurov 2021-05-06 15:35:15 +07:00
parent 01211eae0f
commit 43aa09a88b
18 changed files with 138 additions and 82 deletions

View file

@ -1,5 +1,5 @@
import { NextMiddleware } from "middleware-io";
import { ConfigGroup, GroupInstance, VkEvent } from "../types";
import { ConfigGroup, GroupChannel, GroupInstance, VkEvent } from "../types";
import { VkService } from "../index";
import { TelegramService } from "../../telegram";
import { Template } from "../../template";
@ -13,7 +13,7 @@ export class VkEventHandler<
public constructor(
protected type: VkEvent,
protected group: ConfigGroup,
protected channel: string,
protected channel: GroupChannel,
protected instance: GroupInstance,
protected vk: VkService,
protected telegram: TelegramService,
@ -60,7 +60,7 @@ export class VkEventHandler<
this.type,
id,
this.group.id,
this.channel
this.channel.id
);
};
@ -78,7 +78,7 @@ export class VkEventHandler<
this.type,
tgMessageId,
this.group.id,
this.channel
this.channel.id
);
};
@ -94,7 +94,7 @@ export class VkEventHandler<
this.type,
id,
this.group.id,
this.channel,
this.channel.id,
tgMessageId,
text
);