[core] openapi - POST /api/{session}/presence chatId param

fix #1842
This commit is contained in:
devlikepro committed 2026-02-02 14:10:57 +07:00
1 parent 91d541387b
commit f6004fd294
1 file changed
+5 -4
+5 -4
View File
@@ -1,4 +1,4 @@
import { ApiProperty } from '@nestjs/swagger';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { WAHAPresenceStatus } from './enums.dto';
@@ -28,9 +28,10 @@ export class WAHAChatPresences {
export class WAHASessionPresence {
presence: WAHAPresenceStatus;
@ApiProperty({
description: 'Chat ID - either group id or contact id',
@ApiPropertyOptional({
description:
'Chat ID - either group id or contact id. Required for chat-related presence statuses; omit for ONLINE/OFFLINE.',
example: '11111111111@c.us',
})
chatId: string;
chatId?: string;
}