From 08fc173ea53b5d7785e0d7f0adf228eb2842d7aa Mon Sep 17 00:00:00 2001 From: Dmitrijs Pavlovs Date: Mon, 18 Dec 2023 14:57:47 +0200 Subject: [PATCH] Cleanup --- apps/backend/src/services/bot.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/backend/src/services/bot.service.ts b/apps/backend/src/services/bot.service.ts index 1bd68da..2a3a533 100644 --- a/apps/backend/src/services/bot.service.ts +++ b/apps/backend/src/services/bot.service.ts @@ -78,10 +78,10 @@ export class BotService { const stringSession = ''; // Your saved session string const botToken = this.configService.get('TELEGRAM_BOT_TOKEN'); - const appId = this.configService.get('TELEGRAM_BOT_TOKEN'); + const appId = this.configService.get('TELEGRAM_BOT_TOKEN'); const appIdHash = this.configService.get('TELEGRAM_BOT_TOKEN'); (async () => { - const client = new TelegramClient(new StringSession(stringSession), 29228878, 'e5baec1b048baeb5df82a1ace1b7b65a', { + const client = new TelegramClient(new StringSession(stringSession), Number(appId), appIdHash, { connectionRetries: 5, }); await client.start({