@@ -67,7 +67,6 @@ import {
6767 Chatwoot ,
6868 ConfigService ,
6969 configService ,
70- ConfigSessionPhone ,
7170 Database ,
7271 Log ,
7372 Openai ,
@@ -124,7 +123,6 @@ import makeWASocket, {
124123 Product ,
125124 proto ,
126125 UserFacingSocketConfig ,
127- WABrowserDescription ,
128126 WAMediaUpload ,
129127 WAMessage ,
130128 WAMessageKey ,
@@ -143,7 +141,6 @@ import Long from 'long';
143141import mimeTypes from 'mime-types' ;
144142import NodeCache from 'node-cache' ;
145143import cron from 'node-cron' ;
146- import { release } from 'os' ;
147144import { join } from 'path' ;
148145import P from 'pino' ;
149146import qrcode , { QRCodeToDataURLOptions } from 'qrcode' ;
@@ -624,19 +621,9 @@ export class BaileysStartupService extends ChannelStartupService {
624621 private async createClient ( number ?: string ) : Promise < WASocket > {
625622 this . instance . authState = await this . defineAuthState ( ) ;
626623
627- const session = this . configService . get < ConfigSessionPhone > ( 'CONFIG_SESSION_PHONE' ) ;
628-
629- let browserOptions = { } ;
630-
631- if ( number || this . phoneNumber ) {
624+ if ( number ) {
632625 this . phoneNumber = number ;
633-
634626 this . logger . info ( `Phone number: ${ number } ` ) ;
635- } else {
636- const browser : WABrowserDescription = [ session . CLIENT , session . NAME , release ( ) ] ;
637- browserOptions = { browser } ;
638-
639- this . logger . info ( `Browser: ${ browser } ` ) ;
640627 }
641628
642629 // Fetch latest WhatsApp Web version automatically
@@ -697,7 +684,7 @@ export class BaileysStartupService extends ChannelStartupService {
697684 msgRetryCounterCache : this . msgRetryCounterCache ,
698685 generateHighQualityLinkPreview : true ,
699686 getMessage : async ( key ) => ( await this . getMessage ( key ) ) as Promise < proto . IMessage > ,
700- ... browserOptions ,
687+ // Removido browserOptions para usar Multi-Device nativo (não WebClient)
701688 markOnlineOnConnect : this . localSettings . alwaysOnline ,
702689 retryRequestDelayMs : 350 ,
703690 maxMsgRetryCount : 4 ,
0 commit comments