@@ -78,10 +78,10 @@ export class EvolutionBotService {
7878 payload . query = contentSplit [ 2 ] || content ;
7979 }
8080
81- if ( instance . integration === Integration . WHATSAPP_BAILEYS ) {
82- await instance . client . presenceSubscribe ( remoteJid ) ;
83- await instance . client . sendPresenceUpdate ( 'composing' , remoteJid ) ;
84- }
81+ // if (instance.integration === Integration.WHATSAPP_BAILEYS) {
82+ // await instance.client.presenceSubscribe(remoteJid);
83+ // await instance.client.sendPresenceUpdate('composing', remoteJid);
84+ // }
8585
8686 let headers : any = {
8787 'Content-Type' : 'application/json' ,
@@ -98,12 +98,14 @@ export class EvolutionBotService {
9898 headers,
9999 } ) ;
100100
101- if ( instance . integration === Integration . WHATSAPP_BAILEYS )
102- await instance . client . sendPresenceUpdate ( 'paused' , remoteJid ) ;
101+ // if (instance.integration === Integration.WHATSAPP_BAILEYS)
102+ // await instance.client.sendPresenceUpdate('paused', remoteJid);
103+
104+ // const message = response?.data?.message;
103105
104- const message = response ?. data ?. message ;
106+ // return message;
105107
106- return message ;
108+ return
107109 }
108110
109111 private async sendMessageWhatsApp (
@@ -419,9 +421,9 @@ export class EvolutionBotService {
419421
420422 const message = await this . sendMessageToBot ( instance , session , bot , remoteJid , pushName , content ) ;
421423
422- if ( ! message ) return ;
424+ // if (!message) return;
423425
424- await this . sendMessageWhatsApp ( instance , remoteJid , session , settings , message ) ;
426+ // await this.sendMessageWhatsApp(instance, remoteJid, session, settings, message);
425427
426428 return ;
427429 }
0 commit comments