|  |  | @ -23,12 +23,7 @@ export class WebhookManager { | 
			
		
	
		
		
			
				
					
					|  |  |  | 	private static readonly REQUIRED_EVENTS = [ |  |  |  | 	private static readonly REQUIRED_EVENTS = [ | 
			
		
	
		
		
			
				
					
					|  |  |  | 		'APPLICATION_STARTUP', |  |  |  | 		'APPLICATION_STARTUP', | 
			
		
	
		
		
			
				
					
					|  |  |  | 		'messages.upsert', |  |  |  | 		'messages.upsert', | 
			
		
	
		
		
			
				
					
					|  |  |  | 		'messages.update', |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		'messages.delete', |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		'groups.update', |  |  |  | 		'groups.update', | 
			
		
	
		
		
			
				
					
					|  |  |  | 		'presence.update', |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		'contacts.update', |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		'chats.update', |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 	]; |  |  |  | 	]; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	private static validateConfig() { |  |  |  | 	private static validateConfig() { | 
			
		
	
	
		
		
			
				
					|  |  | @ -104,7 +99,7 @@ export class WebhookManager { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			try { |  |  |  | 			try { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				const errorBody = await response.text(); |  |  |  | 				const errorBody = await response.text(); | 
			
		
	
		
		
			
				
					
					|  |  |  | 				errorDetails += ` - ${errorBody}`; |  |  |  | 				errorDetails += ` - ${errorBody}`; | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} catch {} |  |  |  | 			} catch { } | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			throw new Error(`Failed to register webhook: ${errorDetails}`); |  |  |  | 			throw new Error(`Failed to register webhook: ${errorDetails}`); | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |