Fetch stories + broadcast list info

This commit is contained in:
Adhiraj
2020-07-13 13:45:46 +05:30
parent 2aca2f7485
commit 51484df602
7 changed files with 167 additions and 97 deletions

View File

@@ -70,13 +70,14 @@ WAClientTest('Messages', (client) => {
await client.clearMessage (messages[0].key)
})
it ('should load convo', async () => {
const [chats] = await client.receiveChatsAndContacts ()
/*const [chats] = await client.receiveChatsAndContacts ()
for (var i in chats) {
if (chats[i].jid.includes('@g.us')) {
console.log (chats[i].jid)
const data = await client.groupCreatorAndParticipants (chats[i].jid)
}
}
}*/
})
})
@@ -116,6 +117,9 @@ WAClientTest('Misc', (client) => {
assert.ok(response.status)
assert.strictEqual(typeof response.status, 'string')
})
it('should return the stories', async () => {
await client.getStories()
})
it('should return the profile picture', async () => {
const response = await client.getProfilePicture(testJid)
assert.ok(response)