This commit is contained in:
Adhiraj
2020-07-19 23:50:39 +05:30
parent 7f2468efcf
commit d096c8c012
2 changed files with 3 additions and 2 deletions

View File

@@ -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
}

View File

@@ -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)