@ -12,6 +12,7 @@ export const REQUIRED_ENV = [
'EVOLUTION_API_URL',
'EVOLUTION_API_KEY',
'EVOLUTION_API_INSTANCE',
'INSTANCE_NAME',
'WHATSAPP_COMMUNITY_ID',
'CHATBOT_PHONE_NUMBER',
'WEBHOOK_URL'
@ -21,9 +21,13 @@ type WebhookResponse = {
export class WebhookManager {
private static readonly REQUIRED_EVENTS = [
'APPLICATION_STARTUP',
'MESSAGES.UPSERT',
'messages.upsert',
'MESSAGES.DELETE',
'messages.update',
'GROUPS.UPDATE',
'messages.delete',
'groups.update',
'presence.update',
'contacts.update',
'chats.update',
];
private static validateConfig() {