Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrijs-pavlovs-dev committed Dec 18, 2023
1 parent 45bc349 commit 08fc173
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/backend/src/services/bot.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ export class BotService {

const stringSession = ''; // Your saved session string
const botToken = this.configService.get<string>('TELEGRAM_BOT_TOKEN');
const appId = this.configService.get<string>('TELEGRAM_BOT_TOKEN');
const appId = this.configService.get<number>('TELEGRAM_BOT_TOKEN');
const appIdHash = this.configService.get<string>('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({
Expand Down

0 comments on commit 08fc173

Please sign in to comment.