import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { TgChat } from '../../database/entities/tg-chat.entity'; import { TgChatsService } from './tg-chats.service'; import { TgChatsController } from './tg-chats.controller'; import { TdlibModule } from '../tdlib/tdlib.module'; import { TgAccountsModule } from '../tg-accounts/tg-accounts.module'; @Module({ imports: [TypeOrmModule.forFeature([TgChat]), TdlibModule, TgAccountsModule], providers: [TgChatsService], controllers: [TgChatsController], exports: [TgChatsService], }) export class TgChatsModule {}