Spaces:
Runtime error
Runtime error
File size: 1,172 Bytes
4327358 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
import { ApiProperty } from '@nestjs/swagger';
import { WAHAEvents } from '@waha/structures/enums.dto';
import {
GroupV2JoinEvent,
GroupV2LeaveEvent,
GroupV2ParticipantsEvent,
GroupV2UpdateEvent,
} from '@waha/structures/groups.events.dto';
import { WAHAWebhook } from '@waha/structures/webhooks.dto';
export class WebhookGroupV2Join extends WAHAWebhook {
@ApiProperty({
description: 'When you joined or were added to a group',
})
event = WAHAEvents.GROUP_V2_JOIN;
payload: GroupV2JoinEvent;
}
export class WebhookGroupV2Leave extends WAHAWebhook {
@ApiProperty({
description: 'When you left or were removed from a group',
})
event = WAHAEvents.GROUP_V2_LEAVE;
payload: GroupV2LeaveEvent;
}
export class WebhookGroupV2Update extends WAHAWebhook {
@ApiProperty({
description: 'When group info is updated',
})
event = WAHAEvents.GROUP_V2_UPDATE;
payload: GroupV2UpdateEvent;
}
export class WebhookGroupV2Participants extends WAHAWebhook {
@ApiProperty({
description: 'When participants changed - join, leave, promote to admin',
})
event = WAHAEvents.GROUP_V2_PARTICIPANTS;
payload: GroupV2ParticipantsEvent;
}
|