Skip to content

Instantly share code, notes, and snippets.

@techgod143
Last active November 3, 2025 22:57
Show Gist options
  • Select an option

  • Save techgod143/95e47dcf9eb25e890ea76cd5c6defc64 to your computer and use it in GitHub Desktop.

Select an option

Save techgod143/95e47dcf9eb25e890ea76cd5c6defc64 to your computer and use it in GitHub Desktop.
improve image quality
const { bot, upscale } = require('../lib')
bot(
{
pattern: 'remini ?(.*)',
fromMe: true,
desc: 'improve image quality',
type: 'ai',
},
async (message, match) => {
if (!message.reply_message && !message.reply_message.image) {
return await message.send('reply to a image.')
}
const res = await upscale(await message.reply_message.downloadAndSaveMediaMessage('upscale'))
await message.send(res, { quoted: message.data, mimetype: 'image/png' }, 'image')
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment