Last active
November 3, 2025 22:57
-
-
Save techgod143/95e47dcf9eb25e890ea76cd5c6defc64 to your computer and use it in GitHub Desktop.
improve image quality
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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