mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-19 11:52:20 -06:00
chore: Add webhookUrl to Message model, DTOs, and services
Adds webhookUrl field to Message model, SendMessageDto, SendTemplateDto, SendContactDto, and related services to enable sending messages to a specified webhook URL. This change allows for more flexible message handling and delivery options. Modified files: - prisma/postgresql-schema.prisma - src/api/dto/sendMessage.dto.ts - src/api/services/channels/whatsapp.business.service.ts - src/validate/message.schema.ts Untracked files: - prisma/migrations/20240723200254_add_webhookurl_on_message/
This commit is contained in:
@@ -13,6 +13,7 @@ export class Options {
|
||||
encoding?: boolean;
|
||||
mentionsEveryOne?: boolean;
|
||||
mentioned?: string[];
|
||||
webhookUrl?: string;
|
||||
}
|
||||
|
||||
export class MediaMessage {
|
||||
@@ -137,6 +138,7 @@ export class SendTemplateDto extends Metadata {
|
||||
name: string;
|
||||
language: string;
|
||||
components: any;
|
||||
webhookUrl?: string;
|
||||
}
|
||||
export class SendContactDto extends Metadata {
|
||||
contact: ContactMessage[];
|
||||
|
||||
Reference in New Issue
Block a user