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

added vk events handler stub

This commit is contained in:
Fedor Katurov 2021-04-28 09:55:02 +07:00
parent dfae42c197
commit 3f908da91e
11 changed files with 125 additions and 67 deletions

View file

@ -8,18 +8,13 @@ import { HttpApi } from "./api/http";
async function main() {
try {
const config = prepareConfig();
const telegram = new TelegramService(config.telegram, config.webhook);
const telegram = new TelegramService(config.telegram);
const vkService = new VkService(config.vk);
const telegramApi = new TelegramApi(telegram).listen();
await telegram.start();
const httpApi = new HttpApi(
config.http,
telegram,
vkService,
config.webhook
).listen();
const httpApi = new HttpApi(config.http, telegram, vkService).listen();
} catch (e) {
logger.error(e.message);
}