Skip to content

Instantly share code, notes, and snippets.

@missnora07
Forked from souravkl11/image.js
Last active July 3, 2022 16:14
Show Gist options
  • Save missnora07/80923e582123660229f06337d76c4016 to your computer and use it in GitHub Desktop.
Save missnora07/80923e582123660229f06337d76c4016 to your computer and use it in GitHub Desktop.
Sample plugin to send text, image & video
const {Module} = require('../main')
const {skbuffer} = require('raganork-bot');
const {MODE} = require('../config');
let auto = MODE == 'public' ? false : true
Module({
pattern: 'image ?(.*)',
fromMe: auto,
desc: 'Sends image',
use: 'utility',
}, async (m,t) => {
await m.client.sendMessage(m.jid,{image:{url: 'https://i.imgur.com/c3brJQR.jpeg'}. caption: "INNAAA"},'image')
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment