asikleys
v1.0.1
Published
Enhanced Baileys fork with full button support (quick reply, list, copy/call/link buttons) and media overlay features
Downloads
269
Maintainers
Readme
Asikleys (English)
Enhanced Baileys fork with full button support for WhatsApp Web.
Based on Baileys v7.0.0-rc.9 - All the power of the original Baileys library, plus enhanced button functionality.
🎯 Features
✨ Full Button Support
- Quick Reply Buttons - Standard interactive buttons that work on both Web and Mobile
- List Messages - Dropdown selection menus
- Interactive Buttons - Copy, Call, and Link buttons (hydrated buttons)
- Native Flow Buttons - Advanced dropdown menus with custom flows
🤖 Try it Live!
Want to see Asikleys in action? Try our AsikN WhatsApp bot: https://tiny.cc/asikn
📦 Installation
npm install asikleys🚀 Quick Start
const { default: makeWASocket } = require('asikleys');
// Use exactly like Baileys
const sock = makeWASocket({
// your config
});
// Send quick reply buttons
await sock.sendMessage(jid, {
text: 'Choose an option:',
footer: 'Footer text',
buttons: [
{ buttonId: 'id1', buttonText: { displayText: 'Button 1' }, type: 1 },
{ buttonId: 'id2', buttonText: { displayText: 'Button 2' }, type: 1 }
],
headerType: 1,
viewOnce: true
});
// Send list message
await sock.sendMessage(jid, {
text: 'Select from list:',
buttonText: 'Click Here',
sections: [
{
title: 'Section 1',
rows: [
{ title: 'Option 1', rowId: 'opt1', description: 'Description 1' },
{ title: 'Option 2', rowId: 'opt2', description: 'Description 2' }
]
}
]
});
// Send copy button (hydrated button)
await sock.sendMessage(jid, {
text: 'Here is your code:\n\nABCD-1234',
footer: 'Click to copy',
interactiveButtons: [
{
name: 'cta_copy',
buttonParamsJson: JSON.stringify({
display_text: '📋 Copy Code',
copy_code: 'ABCD-1234'
})
}
]
});📝 Button Types
Quick Reply Buttons
Standard buttons that send a message when clicked.
List Messages
Dropdown menus with multiple sections and options.
Interactive Buttons (Hydrated)
- Copy Button (
cta_copy) - Copies text to clipboard - Call Button (
cta_call) - Initiates a phone call - Link Button (
cta_url) - Opens a URL
Native Flow Buttons
Advanced interactive dropdowns with custom flows.
🔄 Migration from Baileys
Asikleys is a drop-in replacement for Baileys. Simply replace:
// Before
const { default: makeWASocket } = require('baileys');
// After
const { default: makeWASocket } = require('asikleys');All existing Baileys code will work without changes!
📜 License
MIT
🙏 Credits
- Based on Baileys by WhiskeySockets
- Button implementation inspired by yaoii-bails
💬 Support
For issues and questions, please open an issue on GitHub.
Made with ❤️ for the WhatsApp bot community
Try it live: https://tiny.cc/asikn
Asikleys (Bahasa Indonesia)
Fork Baileys yang ditingkatkan dengan dukungan tombol lengkap untuk WhatsApp Web.
Berbasis Baileys v7.0.0-rc.9 - Semua kekuatan library Baileys asli, ditambah fungsionalitas tombol yang ditingkatkan.
🎯 Fitur
✨ Dukungan Tombol Lengkap
- Tombol Quick Reply - Tombol interaktif standar yang berfungsi di Web dan Mobile
- List Messages - Menu dropdown dengan pilihan
- Tombol Interaktif - Tombol Copy, Call, dan Link (hydrated buttons)
- Tombol Native Flow - Menu dropdown lanjutan dengan flow kustom
🤖 Coba Langsung!
Ingin melihat Asikleys beraksi? Coba bot WhatsApp AsikN kami: https://tiny.cc/asikn
📦 Instalasi
npm install asikleys🚀 Mulai Cepat
const { default: makeWASocket } = require('asikleys');
// Gunakan persis seperti Baileys
const sock = makeWASocket({
// konfigurasi kamu
});
// Kirim tombol quick reply
await sock.sendMessage(jid, {
text: 'Pilih opsi:',
footer: 'Teks footer',
buttons: [
{ buttonId: 'id1', buttonText: { displayText: 'Tombol 1' }, type: 1 },
{ buttonId: 'id2', buttonText: { displayText: 'Tombol 2' }, type: 1 }
],
headerType: 1,
viewOnce: true
});
// Kirim list message
await sock.sendMessage(jid, {
text: 'Pilih dari list:',
buttonText: 'Klik Di Sini',
sections: [
{
title: 'Bagian 1',
rows: [
{ title: 'Opsi 1', rowId: 'opt1', description: 'Deskripsi 1' },
{ title: 'Opsi 2', rowId: 'opt2', description: 'Deskripsi 2' }
]
}
]
});
// Kirim tombol copy (hydrated button)
await sock.sendMessage(jid, {
text: 'Ini kode kamu:\n\nABCD-1234',
footer: 'Klik untuk copy',
interactiveButtons: [
{
name: 'cta_copy',
buttonParamsJson: JSON.stringify({
display_text: '📋 Copy Kode',
copy_code: 'ABCD-1234'
})
}
]
});📝 Jenis Tombol
Tombol Quick Reply
Tombol standar yang mengirim pesan saat diklik.
List Messages
Menu dropdown dengan beberapa bagian dan opsi.
Tombol Interaktif (Hydrated)
- Tombol Copy (
cta_copy) - Menyalin teks ke clipboard - Tombol Call (
cta_call) - Memulai panggilan telepon - Tombol Link (
cta_url) - Membuka URL
Tombol Native Flow
Dropdown interaktif lanjutan dengan flow kustom.
🔄 Migrasi dari Baileys
Asikleys adalah pengganti langsung untuk Baileys. Cukup ganti:
// Sebelum
const { default: makeWASocket } = require('baileys');
// Sesudah
const { default: makeWASocket } = require('asikleys');Semua kode Baileys yang ada akan berfungsi tanpa perubahan!
📜 Lisensi
MIT
🙏 Kredit
- Berbasis Baileys oleh WhiskeySockets
- Implementasi tombol terinspirasi dari yaoii-bails
💬 Dukungan
Untuk masalah dan pertanyaan, silakan buka issue di GitHub.
Dibuat dengan ❤️ untuk komunitas bot WhatsApp
Coba langsung: https://tiny.cc/asikn
