type CustomerProfile = { telegramId: string; }; export class BaseService { protected customer: CustomerProfile; constructor(customer: CustomerProfile) { if (!customer?.telegramId) { throw new Error('Invalid customer profile: telegramId required'); } this.customer = customer; } }