1
0
Fork 0
mirror of https://github.com/muerwre/vk-tg-bot.git synced 2025-04-24 22:46:41 +07:00

#1 added class comments

This commit is contained in:
Fedor Katurov 2021-04-29 11:20:18 +07:00
parent 1754092f7c
commit 1a4903c6f0

View file

@ -8,6 +8,9 @@ import { VkEventHandler } from "./handlers/VkEventHandler";
import { vkEventToHandler } from "./handlers";
import { TelegramService } from "../telegram";
/**
* Service to handle VK to Telegram interactions
*/
export class VkService {
public endpoint: string = "/";
private readonly instances: Record<string, GroupInstance>;
@ -61,6 +64,9 @@ export class VkService {
}
};
/**
* Creates vk bot instance for each group with api, uploader and updates handler
*/
private createGroupInstance = (group: ConfigGroup): GroupInstance => {
const api = new API({
token: group.apiKey,