Skip to content

Latest commit

 

History

History
50 lines (45 loc) · 1.07 KB

DOCS.md

File metadata and controls

50 lines (45 loc) · 1.07 KB

乂 Non-Media Messages

// send text
client.reply(m.chat, 'Hello everyone!', m)
// or
m.reply('Hello everyone!')

// send text \w thumbnail
client.sendMessageModify(m.chat, 'Hello everyone!', m, {
   title: 'This is title',
   ads: true,
   largeThumb: true,
   thumbnail: await Func.fetchBuffer('https://telegra.ph/file/d826ed4128ba873017479.jpg'),
   url: 'https://chat.whatsapp.com/Dh1USlrqIfmJT6Ji0Pm2pP'
})

// send react
client.sendReact(m.chat, '🕒', m.key)

// send list
const rows = [{
   title: 'Command A',
   rowId: '.a'
   description: ``
}, {
   title: 'Command B',
   rowId: '.b'
   description: ``
}]
client.sendList(m.chat, 'This is header', `Hello everyone!`, '© neoxr-bot', 'Tap!', [{
   rows
}], m)
         
// send text button
const buttons = [{
   buttonId: `.a`,
   buttonText: {
      displayText: 'Command A'
   },
   type: 1
}, {
   buttonId: `.b`,
   buttonText: {
      displayText: 'Command B'
   },
   type: 1
}]
client.sendButtonText(m.chat, 'Hello everyone!', '© neoxr-bot', buttons)