import { ApiProperty, ApiPropertyOptions } from '@nestjs/swagger'; | |
function ChatIdProperty(options: ApiPropertyOptions | null = null) { | |
options = options || {}; | |
if (!options.example) { | |
options.example = '11111111111@c.us'; | |
} | |
return ApiProperty(options); | |
} | |
function MessageIdProperty() { | |
return ApiProperty({ | |
description: 'Message ID', | |
example: 'false_11111111111@c.us_AAAAAAAAAAAAAAAAAAAA', | |
}); | |
} | |
export { ChatIdProperty, MessageIdProperty }; | |