import { IsString, IsOptional, IsObject } from 'class-validator';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';

export class CreateBotDto {
  @ApiProperty({ description: 'Bot display name' })
  @IsString()
  name: string;

  @ApiProperty({ description: 'Telegram Bot API token' })
  @IsString()
  token: string;

  @ApiPropertyOptional()
  @IsOptional()
  @IsObject()
  settings?: Record<string, unknown>;
}
