let handler = async (m, { conn, usedPrefix, command }) => { let q = m.quoted ? m.quoted : m let mime = (q.msg || q).mimetype || q.mediaType || '' if (/image/.test(mime)) { let img = await q.download() if (!img) throw `⚠️ οΈπ™π™€π™Žπ™‹π™Šπ™‰π˜Ώπ™€ 𝘼 π™π™‰π˜Ό π™„π™ˆπ˜Όπ™‚π™€π™‰` await conn.updateProfilePicture(m.chat, img).then(_ => m.react("βœ…οΈ")) } else throw `⚠️ π™π™€π™Žπ™‹π™Šπ™‰π˜Ώπ™€ 𝘼 π™π™‰π˜Ό π™„π™ˆπ˜Όπ™‚π™€π™‰` } handler.help = ['setppgc']; handler.tags = ['group']; handler.command = /^setpp(group|grup|gc)?$/i handler.group = true handler.admin = true handler.botAdmin = true export default handler