mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Nicer message deletion + catch profile picture update errors
This commit is contained in:
@@ -51,6 +51,11 @@ WAConnectionTest('Groups', (conn) => {
|
||||
it('should send a message on the group', async () => {
|
||||
await sendAndRetreiveMessage(conn, 'Hello!', MessageType.text, {}, gid)
|
||||
})
|
||||
it('should delete a message on the group', async () => {
|
||||
const message = await sendAndRetreiveMessage(conn, 'Hello!', MessageType.text, {}, gid)
|
||||
await delay(1500)
|
||||
await conn.deleteMessage(message.key)
|
||||
})
|
||||
it('should quote a message on the group', async () => {
|
||||
const {messages} = await conn.loadMessages (gid, 100)
|
||||
const quotableMessage = messages.find (m => m.message)
|
||||
|
||||
Reference in New Issue
Block a user