Nurutomo / wabot-aq

WhatsApp Bot
GNU General Public License v3.0
691 stars 1.38k forks source link

[HELP] SendButton #713

Closed lilnext01 closed 2 years ago

lilnext01 commented 3 years ago

Bagaimana cara mengirim pesan dengan tombol? dan bagaimana cara mengirim gambar dengan tombol?

iniariaaa commented 3 years ago

coba di https://github.com/stikerinbot

ilhamimut commented 3 years ago

Bagaimana cara mengirim pesan dengan tombol? dan bagaimana cara mengirim gambar dengan tombol?

coba ini:

let { MessageType } = require('@adiwajshing/baileys') const { sticker } = require('../lib/sticker') let fs = require('fs')

const buttons = [ {buttonId: '.menu', buttonText: {displayText: 'MENU'}, type: 1}, {buttonId: '.limit', buttonText: {displayText: 'LIMIT'}, type: 1}, ]

const buttonMessage = { contentText: "Ada yang bisa dibantu? \nTekan MENU", footerText: 'test doang', buttons: buttons, headerType: 1 }

let handler = async (m, { conn }) => { conn.sendMessage(m.chat, buttonMessage, MessageType.buttonsMessage, {quoted : m} ) }

handler.customPrefix = /^bot$|halo$|/i // ketik bot atau halo (tanpa prefix) handler.command = new RegExp

handler.owner = false handler.mods = false handler.premium = false handler.group = false handler.private = false

handler.admin = false handler.botAdmin = false

handler.fail = null

module.exports = handler

simpan file dengan nama terserah.js

BochilGaming commented 3 years ago

Bagaimana cara mengirim pesan dengan tombol? dan bagaimana cara mengirim gambar dengan tombol?

conn.sendButton(m.chat, 'content', 'footer', null, [['button text', 'button id']])

Lilithxdef commented 3 years ago

Bagaimana cara mengirim pesan dengan tombol? dan bagaimana cara mengirim gambar dengan tombol?

conn.sendButton(m.chat, 'content', 'footer', null, [['button text', 'button id']])

Tulis di?

BochilGaming commented 3 years ago

Bagaimana cara mengirim pesan dengan tombol? dan bagaimana cara mengirim gambar dengan tombol?

conn.sendButton(m.chat, 'content', 'footer', null, [['button text', 'button id']])

Tulis di?

Di plugins yang mau kamu add button

Ftwrr commented 3 years ago

salin aja sendbutton dari stikerinbot