Skip to content

Instantly share code, notes, and snippets.

@I-NRL
Created October 27, 2023 02:24
Show Gist options
  • Save I-NRL/1e30bafd155d80d45ea8fc46553ac94c to your computer and use it in GitHub Desktop.
Save I-NRL/1e30bafd155d80d45ea8fc46553ac94c to your computer and use it in GitHub Desktop.
send message to your dm
const { inrl } = require('../lib')
inrl(
{
pattern: 'save ?(.*)',
fromMe: true,
desc: 'send message to your pm',
type: 'whatsapp',
},
async (message, match) => {
if (!message.reply_message.msg) return await message.send('*reply to a message*');
return await message.forwardMessage(message.client.user.jid, message.quoted.type == 'conversation' ? message.quoted.text : message.quoted, {quoted:message.quoted.data})
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment