mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fixed bug with stickers
This commit is contained in:
@@ -51,6 +51,13 @@ WAConnectionTest('Messages', conn => {
|
||||
await conn.downloadMediaMessage(message)
|
||||
//const message2 = await sendAndRetreiveMessage (conn, 'this is a quote', MessageType.extendedText)
|
||||
})
|
||||
it('should send a sticker', async () => {
|
||||
const content = await fs.readFile('./Media/octopus.webp')
|
||||
const message = await sendAndRetreiveMessage(conn, content, MessageType.sticker)
|
||||
|
||||
await conn.downloadMediaMessage(message)
|
||||
//const message2 = await sendAndRetreiveMessage (conn, 'this is a quote', MessageType.extendedText)
|
||||
})
|
||||
it('should send an image & quote', async () => {
|
||||
const {messages} = await conn.loadMessages(testJid, 1)
|
||||
const content = await fs.readFile('./Media/meme.jpeg')
|
||||
|
||||
Reference in New Issue
Block a user