|
|
|
@ -21,9 +21,13 @@ type WebhookResponse = {
|
|
|
|
export class WebhookManager {
|
|
|
|
export class WebhookManager {
|
|
|
|
private static readonly REQUIRED_EVENTS = [
|
|
|
|
private static readonly REQUIRED_EVENTS = [
|
|
|
|
'APPLICATION_STARTUP',
|
|
|
|
'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() {
|
|
|
|
private static validateConfig() {
|
|
|
|
|