whatsapp-bot-md

1.4.0 • Public • Published

Example code and usage:

for adding text over img

let {memGen} = require('whatsapp-bot-pack');


let options = {
    imageURL: 'example.jpg', // URL of image
    topText: 'hamme', // optionel
    top_Pos : 10,//optionel
    bottomText: 'ekash-md', // bottom text of meme
    bot_Pos : 50,//optionel
    fileName: 'my_meme', //optionel
}

memGen(options, function(res, error) {
    if(error) throw new Error(error)
    console.log('img writed with ' + res.fileName + 'name');
});

to get session file of wa bot!

let {getSession} = require('whatsapp-bot-pack');
const fs = require('fs');

let file = async(sessionid)=>{
let data = await getSession(sessionid);
data = data.data;
return await fs.writeFilesync('creds.json', data)
}
file("inrl~102394028038:78");

for deleting unwanted session file!

let {DltSession} = require('whatsapp-bot-pack');
async function dlt(sessionid){
await DltSession(sessionid);
}
dlt("inrl~102394028038:78");

Readme

Keywords

none

Package Sidebar

Install

npm i whatsapp-bot-md

Weekly Downloads

1

Version

1.4.0

License

GNU

Unpacked Size

82.8 kB

Total Files

8

Last publish

Collaborators

  • inrl-bot-md