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

#5 added webhook probe

This commit is contained in:
Fedor Katurov 2021-05-12 13:45:21 +07:00
parent 1fe3d35540
commit 6344f6dc5a
4 changed files with 35 additions and 5 deletions

View file

@ -16,10 +16,15 @@ async function main() {
const telegram = new TelegramService(config.telegram);
const vkService = new VkService(config.vk, telegram, config.templates, db);
const telegramApi = new TelegramApi(telegram).listen();
const telegramApi = new TelegramApi(telegram);
telegramApi.listen();
await telegram.start();
const httpApi = new HttpApi(config.http, telegram, vkService).listen();
const httpApi = new HttpApi(config.http, telegram, vkService);
await httpApi.listen();
await telegramApi.probe();
} catch (e) {
logger.error(e.message);
}