@@ -30,14 +30,14 @@ import makeWASocket, {
3030 WAMessageUpdate ,
3131 WASocket ,
3232 getAggregateVotesInPollMessage ,
33- Browsers ,
3433} from '@whiskeysockets/baileys' ;
3534import {
3635 Auth ,
3736 CleanStoreConf ,
3837 ConfigService ,
3938 ConfigSessionPhone ,
4039 Database ,
40+ HttpServer ,
4141 QrCode ,
4242 Redis ,
4343 Webhook ,
@@ -343,6 +343,7 @@ export class WAStartupService {
343343
344344 public async sendDataWebhook < T = any > ( event : Events , data : T , local = true ) {
345345 const webhookGlobal = this . configService . get < Webhook > ( 'WEBHOOK' ) ;
346+ const urlServer = this . configService . get < HttpServer > ( 'SERVER' ) . URL ;
346347 const webhookLocal = this . localWebhook . events ;
347348 const we = event . replace ( / [ \. - ] / gm, '_' ) . toUpperCase ( ) ;
348349 const transformedWe = we . replace ( / _ / gm, '-' ) . toLowerCase ( ) ;
@@ -367,6 +368,7 @@ export class WAStartupService {
367368 instance : this . instance . name ,
368369 data,
369370 destination : this . localWebhook . url ,
371+ urlServer,
370372 } ) ;
371373 }
372374
@@ -378,6 +380,7 @@ export class WAStartupService {
378380 instance : this . instance . name ,
379381 data,
380382 destination : this . localWebhook . url ,
383+ urlServer,
381384 } ) ;
382385 }
383386 } catch ( error ) {
@@ -425,6 +428,7 @@ export class WAStartupService {
425428 instance : this . instance . name ,
426429 data,
427430 destination : localUrl ,
431+ urlServer,
428432 } ) ;
429433 }
430434
@@ -436,6 +440,7 @@ export class WAStartupService {
436440 instance : this . instance . name ,
437441 data,
438442 destination : localUrl ,
443+ urlServer,
439444 } ) ;
440445 }
441446 } catch ( error ) {
@@ -719,8 +724,7 @@ export class WAStartupService {
719724 const { version } = await fetchLatestBaileysVersion ( ) ;
720725 this . logger . verbose ( 'Baileys version: ' + version ) ;
721726 const session = this . configService . get < ConfigSessionPhone > ( 'CONFIG_SESSION_PHONE' ) ;
722- // const browser: WABrowserDescription = [session.CLIENT, session.NAME, release()];
723- const browser : WABrowserDescription = Browsers . appropriate ( session . CLIENT ) ;
727+ const browser : WABrowserDescription = [ session . CLIENT , session . NAME , release ( ) ] ;
724728 this . logger . verbose ( 'Browser: ' + JSON . stringify ( browser ) ) ;
725729
726730 const socketConfig : UserFacingSocketConfig = {
0 commit comments