import { NestFactory } from '@nestjs/core'; import { Logger } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { AppModule } from './app.module'; async function bootstrap() { const logger = new Logger('Bootstrap'); const app = await NestFactory.create(AppModule); const configService = app.get(ConfigService); const port = configService.get('port') || 3300; await app.listen(port); logger.log(`Telegram Stats Bot running on port ${port}`); logger.log(`Timezone: ${configService.get('timezone')}`); } bootstrap();