case 'printscreen': case 'printsite': case 'screenshot': case 'screenshots':
{//By: 𖧄 𝐋𝐔𝐂𝐀𝐒 𝐌𝐎𝐃 𝐃𝐎𝐌𝐈𝐍𝐀 𖧄
//Canal: https://whatsapp.com/channel/0029Vb69bDnAe5VmzSMwBH11
const cmd = prefix + command
const AJUDA = [
`😈 *Como usar o comando:*`,
'',
`\`${cmd} [tipo] [full]\``,
'',
'*Tipos de dispositivo:*',
'› `desktop` — PC (padrão)',
'› `mobile`— Celular',
'› `tablet`— Tablet',
'',
'*Opção extra:*',
'› `full` — Captura a página inteira',
'',
'*Exemplos:*',
`\`${cmd} https://google.com\``,
`\`${cmd} https://google.com mobile\``,
`\`${cmd} https://google.com desktop full\``
].join('\n')
if (!q) return reply(AJUDA)
const args = q.trim().split(/\s+/)
const siteUrl = args[0]
if (!siteUrl.startsWith('http')) return reply('😈 _URL inválida. Comece com `http://` ou `https://`_')
const DEVICES_VALIDOS = ['desktop', 'mobile', 'tablet']
const device = DEVICES_VALIDOS.find(d => args.includes(d)) || 'desktop'
const fullPage = args.includes('full') ? '1' : '0'
const deviceLabel = { desktop: '🖥️ Desktop', mobile: '📱 Mobile', tablet: '🪄 Tablet' }[device]
const fullLabel = fullPage === '1' ? ' • Página inteira' : ''
reply(`😈 _Capturando screenshot... Aguarde!_ 📸\n\n> ${deviceLabel}${fullLabel}`)
try {
const params = new URLSearchParams({ url: siteUrl, device, fullpage: fullPage, apikey: API_KEY_ZEROTWO })
await zerotwo.sendMessage(from, { image: { url: `${zerosite}/api/ssweb?${params}` }, caption: `📸 *Screenshot capturado!*\n\n> 🌐 _${siteUrl}_\n> ${deviceLabel}${fullLabel}\n> 🤖 _Gerado por ${NomeDoBot}_`, contextInfo: { externalAdReply: { title: '📸 Screenshot de Site', body: `${NomeDoBot} | ${zerosite}`, mediaType: 1, renderLargerThumbnail: false, showAdAttribution: false }}}, { quoted: info })
} catch (e) {
reply(`❌ *Erro ao capturar o screenshot:*\n> ${e.message}`)
}
}
break