Spaces:
Runtime error
Runtime error
| 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', | |
| }); | |
| } | |
| function MessageIdOnlyProperty() { | |
| return ApiProperty({ | |
| description: 'Message ID', | |
| example: 'AAAAAAAAAAAAAAAAAAAA', | |
| }); | |
| } | |
| function ReplyToProperty() { | |
| return ApiProperty({ | |
| description: | |
| 'The ID of the message to reply to - false_11111111111@c.us_AAAAAAAAAAAAAAAAAAAA', | |
| example: null, | |
| }); | |
| } | |
| export function ConvertApiProperty() { | |
| return ApiProperty({ | |
| description: | |
| 'Convert the input file to the required format using ffmpeg before sending', | |
| example: true, | |
| }); | |
| } | |
| export { | |
| ChatIdProperty, | |
| MessageIdOnlyProperty, | |
| MessageIdProperty, | |
| ReplyToProperty, | |
| }; | |