mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Fixes
This commit is contained in:
@@ -322,6 +322,7 @@ export default class WhatsAppWebMessages extends WhatsAppWebGroups {
|
||||
},
|
||||
message: message,
|
||||
messageTimestamp: timestamp,
|
||||
messageStubParameters: [],
|
||||
participant: id.includes('@g.us') ? this.userMetaData.id : null,
|
||||
status: WAMessageProto.proto.WebMessageInfo.WEB_MESSAGE_INFO_STATUS.PENDING
|
||||
}
|
||||
|
||||
@@ -121,12 +121,12 @@ WAClientTest('Misc', (client) => {
|
||||
it('should change the profile picture', async () => {
|
||||
await createTimeout (5000)
|
||||
|
||||
const ppUrl = await client.getProfilePicture(client.userMetadata.id)
|
||||
const ppUrl = await client.getProfilePicture(client.userMetaData.id)
|
||||
const fetched = await fetch(ppUrl, { headers: { Origin: 'https://web.whatsapp.com' } })
|
||||
const buff = await fetched.buffer ()
|
||||
|
||||
const newPP = fs.readFileSync ('./Media/cat.jpeg')
|
||||
const response = await client.updateProfilePicture (client.userMetadata.id, newPP)
|
||||
const response = await client.updateProfilePicture (client.userMetaData.id, newPP)
|
||||
|
||||
await createTimeout (10000)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user