mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Added connection-validated
This commit is contained in:
@@ -64,6 +64,7 @@ export class WAConnection extends Base {
|
||||
this.user = await this.validateNewConnection(validationJSON[1]) // validate the connection
|
||||
|
||||
this.logger.info('validated connection successfully')
|
||||
this.emit ('connection-validated', this.user)
|
||||
|
||||
const response = await this.query({ json: ['query', 'ProfilePicThumb', this.user.jid], waitForOpen: false, expect200: false, requiresPhoneConnection: false })
|
||||
this.user.imgUrl = response?.eurl || ''
|
||||
|
||||
Reference in New Issue
Block a user