@rizzxdc/baileys 8.0.10 → 8.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/LICENSE +4 -2
  2. package/README.md +107 -245
  3. package/WAProto/index.d.ts +15795 -0
  4. package/WAProto/index.js +25587 -4867
  5. package/lib/Defaults/index.d.ts +147 -0
  6. package/lib/Defaults/index.js +134 -104
  7. package/lib/Signal/Group/ciphertext-message.d.ts +10 -0
  8. package/lib/Signal/Group/ciphertext-message.js +9 -11
  9. package/lib/Signal/Group/group-session-builder.d.ts +8 -0
  10. package/lib/Signal/Group/group-session-builder.js +5 -8
  11. package/lib/Signal/Group/group_cipher.d.ts +11 -0
  12. package/lib/Signal/Group/group_cipher.js +72 -75
  13. package/lib/Signal/Group/index.d.ts +12 -0
  14. package/lib/Signal/Group/index.js +11 -13
  15. package/lib/Signal/Group/keyhelper.d.ts +7 -0
  16. package/lib/Signal/Group/keyhelper.js +11 -14
  17. package/lib/Signal/Group/sender-chain-key.d.ts +14 -0
  18. package/lib/Signal/Group/sender-chain-key.js +23 -26
  19. package/lib/Signal/Group/sender-key-distribution-message.d.ts +17 -0
  20. package/lib/Signal/Group/sender-key-distribution-message.js +58 -61
  21. package/lib/Signal/Group/sender-key-message.d.ts +19 -0
  22. package/lib/Signal/Group/sender-key-message.js +61 -64
  23. package/lib/Signal/Group/sender-key-name.d.ts +12 -0
  24. package/lib/Signal/Group/sender-key-name.js +39 -44
  25. package/lib/Signal/Group/sender-key-record.d.ts +13 -0
  26. package/lib/Signal/Group/sender-key-record.js +35 -38
  27. package/lib/Signal/Group/sender-key-state.d.ts +17 -0
  28. package/lib/Signal/Group/sender-key-state.js +76 -79
  29. package/lib/Signal/Group/sender-message-key.d.ts +12 -0
  30. package/lib/Signal/Group/sender-message-key.js +23 -26
  31. package/lib/Signal/libsignal.d.ts +55 -0
  32. package/lib/Signal/libsignal.js +414 -308
  33. package/lib/Signal/lid-mapping.d.ts +21 -0
  34. package/lib/Signal/lid-mapping.js +270 -149
  35. package/lib/Socket/Client/index.d.ts +3 -0
  36. package/lib/Socket/Client/index.js +2 -4
  37. package/lib/Socket/Client/types.d.ts +6 -0
  38. package/lib/Socket/Client/types.js +8 -11
  39. package/lib/Socket/Client/websocket.d.ts +13 -0
  40. package/lib/Socket/Client/websocket.js +51 -50
  41. package/lib/Socket/business.d.ts +395 -0
  42. package/lib/Socket/business.js +357 -355
  43. package/lib/Socket/chats.d.ts +137 -0
  44. package/lib/Socket/chats.js +1195 -867
  45. package/lib/Socket/communities.d.ts +562 -0
  46. package/lib/Socket/communities.js +416 -398
  47. package/lib/Socket/dugong.js +8 -1
  48. package/lib/Socket/groups.d.ts +286 -0
  49. package/lib/Socket/groups.js +336 -301
  50. package/lib/Socket/index.d.ts +530 -0
  51. package/lib/Socket/index.js +8 -13
  52. package/lib/Socket/messages-recv.d.ts +334 -0
  53. package/lib/Socket/messages-recv.js +1729 -1121
  54. package/lib/Socket/messages-send.d.ts +330 -0
  55. package/lib/Socket/messages-send.js +684 -462
  56. package/lib/Socket/mex.d.ts +2 -0
  57. package/lib/Socket/mex.js +36 -40
  58. package/lib/Socket/newsletter.d.ts +284 -0
  59. package/lib/Socket/newsletter.js +247 -237
  60. package/lib/Socket/socket.d.ts +61 -0
  61. package/lib/Socket/socket.js +968 -790
  62. package/lib/Store/index.d.ts +4 -0
  63. package/lib/Store/index.js +4 -6
  64. package/lib/Store/make-cache-manager-store.js +2 -2
  65. package/lib/Store/make-in-memory-store.d.ts +63 -0
  66. package/lib/Store/make-in-memory-store.js +414 -284
  67. package/lib/Store/make-ordered-dictionary.d.ts +13 -0
  68. package/lib/Store/make-ordered-dictionary.js +75 -76
  69. package/lib/Store/object-repository.d.ts +11 -0
  70. package/lib/Store/object-repository.js +21 -23
  71. package/lib/Types/Auth.d.ts +2 -0
  72. package/lib/Types/Auth.js +0 -2
  73. package/lib/Types/Bussines.d.ts +2 -0
  74. package/lib/Types/Bussines.js +0 -2
  75. package/lib/Types/Call.d.ts +2 -0
  76. package/lib/Types/Call.js +0 -2
  77. package/lib/Types/Chat.d.ts +2 -0
  78. package/lib/Types/Chat.js +5 -7
  79. package/lib/Types/Contact.d.ts +2 -0
  80. package/lib/Types/Contact.js +0 -2
  81. package/lib/Types/Events.d.ts +2 -0
  82. package/lib/Types/Events.js +1 -3
  83. package/lib/Types/GroupMetadata.d.ts +2 -0
  84. package/lib/Types/GroupMetadata.js +0 -2
  85. package/lib/Types/Label.d.ts +3 -0
  86. package/lib/Types/Label.js +21 -22
  87. package/lib/Types/LabelAssociation.d.ts +3 -0
  88. package/lib/Types/LabelAssociation.js +3 -4
  89. package/lib/Types/Message.d.ts +12 -0
  90. package/lib/Types/Message.js +11 -6
  91. package/lib/Types/Mex.d.ts +3 -0
  92. package/lib/Types/Mex.js +38 -0
  93. package/lib/Types/Product.d.ts +2 -0
  94. package/lib/Types/Product.js +0 -2
  95. package/lib/Types/RichType.d.ts +3 -0
  96. package/lib/Types/RichType.js +22 -0
  97. package/lib/Types/Signal.d.ts +2 -0
  98. package/lib/Types/Signal.js +1 -3
  99. package/lib/Types/Socket.d.ts +2 -0
  100. package/lib/Types/Socket.js +1 -4
  101. package/lib/Types/State.d.ts +6 -0
  102. package/lib/Types/State.js +52 -8
  103. package/lib/Types/USync.d.ts +2 -0
  104. package/lib/Types/USync.js +1 -3
  105. package/lib/Types/index.d.ts +14 -0
  106. package/lib/Types/index.js +22 -25
  107. package/lib/Utils/auth-utils.d.ts +58 -0
  108. package/lib/Utils/auth-utils.js +285 -203
  109. package/lib/Utils/browser-utils.d.ts +9 -0
  110. package/lib/Utils/browser-utils.js +21 -19
  111. package/lib/Utils/business.d.ts +50 -0
  112. package/lib/Utils/business.js +206 -209
  113. package/lib/Utils/chat-utils.d.ts +409 -0
  114. package/lib/Utils/chat-utils.js +825 -706
  115. package/lib/Utils/companion-reg-client-utils.d.ts +5 -0
  116. package/lib/Utils/companion-reg-client-utils.js +39 -0
  117. package/lib/Utils/crypto.d.ts +40 -0
  118. package/lib/Utils/crypto.js +88 -101
  119. package/lib/Utils/decode-wa-message.d.ts +84 -0
  120. package/lib/Utils/decode-wa-message.js +287 -238
  121. package/lib/Utils/event-buffer.d.ts +13 -0
  122. package/lib/Utils/event-buffer.js +602 -509
  123. package/lib/Utils/generics.d.ts +64 -0
  124. package/lib/Utils/generics.js +334 -295
  125. package/lib/Utils/history.d.ts +76 -0
  126. package/lib/Utils/history.js +125 -79
  127. package/lib/Utils/identity-change-handler.d.ts +14 -0
  128. package/lib/Utils/identity-change-handler.js +49 -0
  129. package/lib/Utils/index.d.ts +25 -0
  130. package/lib/Utils/index.js +25 -21
  131. package/lib/Utils/link-preview.d.ts +13 -0
  132. package/lib/Utils/link-preview.js +73 -70
  133. package/lib/Utils/logger.d.ts +3 -0
  134. package/lib/Utils/logger.js +1 -4
  135. package/lib/Utils/lt-hash.d.ts +7 -0
  136. package/lib/Utils/lt-hash.js +7 -45
  137. package/lib/Utils/make-mutex.d.ts +7 -0
  138. package/lib/Utils/make-mutex.js +27 -31
  139. package/lib/Utils/message-retry-manager.d.ts +80 -0
  140. package/lib/Utils/message-retry-manager.js +165 -14
  141. package/lib/Utils/messages-media.d.ts +137 -0
  142. package/lib/Utils/messages-media.js +768 -572
  143. package/lib/Utils/messages.d.ts +46 -0
  144. package/lib/Utils/messages.js +1082 -130
  145. package/lib/Utils/noise-handler.d.ts +21 -0
  146. package/lib/Utils/noise-handler.js +191 -135
  147. package/lib/Utils/offline-node-processor.d.ts +10 -0
  148. package/lib/Utils/offline-node-processor.js +39 -0
  149. package/lib/Utils/pre-key-manager.d.ts +26 -0
  150. package/lib/Utils/pre-key-manager.js +96 -76
  151. package/lib/Utils/process-message.d.ts +84 -0
  152. package/lib/Utils/process-message.js +718 -311
  153. package/lib/Utils/reporting-utils.d.ts +13 -0
  154. package/lib/Utils/reporting-utils.js +257 -0
  155. package/lib/Utils/rich-message-utils.d.ts +49 -0
  156. package/lib/Utils/rich-message-utils.js +257 -0
  157. package/lib/Utils/signal.d.ts +83 -0
  158. package/lib/Utils/signal.js +174 -135
  159. package/lib/Utils/stanza-ack.d.ts +17 -0
  160. package/lib/Utils/stanza-ack.js +37 -0
  161. package/lib/Utils/sync-action-utils.d.ts +3 -0
  162. package/lib/Utils/sync-action-utils.js +48 -0
  163. package/lib/Utils/tc-token-utils.d.ts +30 -0
  164. package/lib/Utils/tc-token-utils.js +162 -0
  165. package/lib/Utils/use-multi-file-auth-state.d.ts +11 -0
  166. package/lib/Utils/use-multi-file-auth-state.js +104 -95
  167. package/lib/Utils/use-single-file-auth-state.d.ts +11 -0
  168. package/lib/Utils/use-single-file-auth-state.js +108 -0
  169. package/lib/Utils/use-sqlite-auth-state.d.ts +11 -0
  170. package/lib/Utils/use-sqlite-auth-state.js +108 -0
  171. package/lib/Utils/validate-connection.d.ts +44 -0
  172. package/lib/Utils/validate-connection.js +182 -180
  173. package/lib/WABinary/constants.d.ts +62 -0
  174. package/lib/WABinary/constants.js +1455 -1292
  175. package/lib/WABinary/decode.d.ts +10 -0
  176. package/lib/WABinary/decode.js +249 -228
  177. package/lib/WABinary/encode.d.ts +3 -0
  178. package/lib/WABinary/encode.js +207 -206
  179. package/lib/WABinary/generic-utils.d.ts +77 -0
  180. package/lib/WABinary/generic-utils.js +135 -99
  181. package/lib/WABinary/index.d.ts +6 -0
  182. package/lib/WABinary/index.js +5 -7
  183. package/lib/WABinary/jid-utils.d.ts +29 -0
  184. package/lib/WABinary/jid-utils.js +80 -78
  185. package/lib/WABinary/types.d.ts +2 -0
  186. package/lib/WABinary/types.js +1 -3
  187. package/lib/WAM/BinaryInfo.d.ts +8 -0
  188. package/lib/WAM/BinaryInfo.js +7 -9
  189. package/lib/WAM/constants.d.ts +34927 -0
  190. package/lib/WAM/constants.js +22847 -22848
  191. package/lib/WAM/encode.d.ts +2 -0
  192. package/lib/WAM/encode.js +129 -134
  193. package/lib/WAM/index.d.ts +4 -0
  194. package/lib/WAM/index.js +3 -5
  195. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +37 -0
  196. package/lib/WAUSync/Protocols/USyncContactProtocol.js +48 -27
  197. package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +23 -0
  198. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +48 -48
  199. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +13 -0
  200. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +23 -26
  201. package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +13 -0
  202. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +33 -35
  203. package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts +10 -0
  204. package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +24 -0
  205. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +39 -0
  206. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +46 -49
  207. package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +15 -0
  208. package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +23 -25
  209. package/lib/WAUSync/Protocols/index.d.ts +6 -0
  210. package/lib/WAUSync/Protocols/index.js +5 -6
  211. package/lib/WAUSync/USyncQuery.d.ts +21 -0
  212. package/lib/WAUSync/USyncQuery.js +92 -85
  213. package/lib/WAUSync/USyncUser.d.ts +17 -0
  214. package/lib/WAUSync/USyncUser.js +28 -22
  215. package/lib/WAUSync/index.d.ts +4 -0
  216. package/lib/WAUSync/index.js +3 -5
  217. package/lib/index.d.ts +12 -0
  218. package/lib/index.js +31 -19
  219. package/package.json +12 -6
  220. package/lib/Types/Newsletter.js +0 -33
package/LICENSE CHANGED
@@ -1,6 +1,8 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 TsmXeuka
3
+ Copyright (c) 2025 Rajeh Taher/WhiskeySockets
4
+ Copyright (c) 2026 Lia Wynn
5
+ Copyright (c) 2026 AlwaysRizz
4
6
 
5
7
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
8
  of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +20,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
20
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
21
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
22
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
23
+ SOFTWARE.
package/README.md CHANGED
@@ -1,290 +1,152 @@
1
1
  <div align="center">
2
2
 
3
- <img src="https://camo.githubusercontent.com/c1f3b7dcf8145e1a0d91e90aae2b7080e761e88b7d770e0e8429c369d7311425/68747470733a2f2f66696c65732e636174626f782e6d6f652f6335733967302e6a7067" alt="WhatsApp Baileys" width="100%" />
3
+ # 🌐 AlwaysRizz
4
4
 
5
- <br/>
6
- <br/>
5
+ **WhatsApp Web API for Node.js**
7
6
 
8
- # @rizzxdc/baileys
7
+ Enhanced Baileys v7 with newsletter media fixes, interactive messages, albums, and extra message types.
9
8
 
10
- <p>
11
- <img src="https://img.shields.io/badge/Node.js-339933?style=for-the-badge&logo=nodedotjs&logoColor=white" />
12
- <img src="https://img.shields.io/badge/WhatsApp-25D366?style=for-the-badge&logo=whatsapp&logoColor=white" />
13
- <img src="https://img.shields.io/badge/WebSocket-010101?style=for-the-badge&logo=socketdotio&logoColor=white" />
14
- <img src="https://img.shields.io/badge/Open%20Source-FF4500?style=for-the-badge&logo=github&logoColor=white" />
15
- <img src="https://img.shields.io/badge/license-MIT-blue?style=for-the-badge" />
16
- </p>
17
-
18
- **Open-source WhatsApp automation library 2014 no browser required.**
19
- Built on WebSocket for speed, stability, and full multi-device support.
20
-
21
- <br/>
22
-
23
- [Installation](#getting-started) [Documentation](#sendmessage-documentation) [Features](#main-features) [Telegram](https://t.me/Rizznotdevcuy)
9
+ [![npm version](https://img.shields.io/npm/v/AlwaysRizz?style=for-the-badge&logo=npm&color=cb3837)](https://www.npmjs.com/package/AlwaysRizz)
10
+ [![downloads](https://img.shields.io/npm/dm/AlwaysRizz?style=for-the-badge&logo=npm&color=cb3837)](https://www.npmjs.com/package/AlwaysRizz)
11
+ [![node](https://img.shields.io/badge/node-%3E%3D20-339933?style=for-the-badge&logo=node.js&logoColor=white)](https://nodejs.org)
12
+ [![license](https://img.shields.io/badge/license-MIT-blue?style=for-the-badge)](LICENSE)
13
+ [![ESM](https://img.shields.io/badge/ESM-ready-f7df1e?style=for-the-badge&logo=javascript&logoColor=black)](#-import-esm--cjs)
24
14
 
25
15
  </div>
26
16
 
27
17
  ---
28
18
 
29
- ## What is @rizzxdc/baileys?
30
-
31
- **@rizzxdc/baileys** is a powerful, open-source library for developers who need reliable WhatsApp automation without the overhead of a browser. Powered by **WebSocket technology**, it supports message management, group administration, interactive messages, and action buttons all in a lightweight and modular package.
19
+ > [!NOTE]
20
+ > AlwaysRizz is maintained by **namamu** and built on top of Baileys v7 and its community forks. It is **not** affiliated with Meta/WhatsApp,
21
+ > and is not intended to replace upstream Baileys. Use it responsibly and at your own risk.
32
22
 
33
- Actively maintained with continuous improvements to **pairing stability**, **session management**, and **WhatsApp multi-device compatibility**.
34
23
 
35
- Perfect for:
36
- - Business bots & chat automation
37
- - Customer service systems
38
- - Broadcast & notification tools
39
- - E-commerce integrations
24
+ ## ✨ Fitur tambahan
40
25
 
41
- ---
42
-
43
- ## Main Features
26
+ - 🖼️ Fix for media that could not be sent to newsletters (upstream issue).
27
+ - 🧩 Interactive messages: buttons, lists, native flows, templates, carousels.
28
+ - 🖼️ Album messages (image + video).
29
+ - 💳 Payment-related messages: requests, invites, orders, invoices.
30
+ - 📦 Sticker-pack, rich-response, code-block, inline-entity and table messages.
31
+ - 📣 `externalAdReply` without manual `contextInfo`.
32
+ - 🗄️ Reintroduced `makeInMemoryStore` (minimal ESM adaptation for v7).
33
+ - ⚙️ FFmpeg runs through `spawn` instead of `exec` for safer process handling.
44
34
 
45
- | Feature | Description |
46
- |---|---|
47
- | **Custom Pairing** | Stable pairing with your own codes no disconnection issues |
48
- | **Interactive Messages** | Buttons, menus, native flows, and more |
49
- | **Session Management** | Automatic, efficient, and long-term stable |
50
- | **Multi-Device Support** | Fully compatible with WhatsApp's latest multi-device API |
51
- | **Lightweight & Modular** | Easy to integrate into any Node.js project |
52
- | **Rich Documentation** | Comprehensive guides and example code included |
53
- | **Secure Auth** | Improved authentication flow with fixed prior vulnerabilities |
35
+ ## 📥 Installation
54
36
 
55
- ---
37
+ ```bash
38
+ # npm
39
+ npm i alwaysrizz@latest
56
40
 
57
- ## Getting Started
41
+ # github
42
+ npm i namamu/alwaysrizz
43
+ ```
58
44
 
59
- Install via npm or yarn:
45
+ Or in `package.json`:
60
46
 
61
- ```bash
62
- npm install @rizzxdc/baileys
63
- # or
64
- yarn add @rizzxdc/baileys
47
+ ```json
48
+ "dependencies": {
49
+ "alwaysrizz": "latest"
50
+ }
51
+ ```
52
+ ```json
53
+ "dependencies": {
54
+ "alwaysrizz": "github:namamu/alwaysrizz"
55
+ }
65
56
  ```
66
57
 
67
- Then import and initialize:
58
+ ### 🧩 Import (ESM & CJS)
68
59
 
69
60
  ```javascript
70
- const { makeWASocket, useMultiFileAuthState } = require("@rizzxdc/baileys");
71
-
72
- const { state, saveCreds } = await useMultiFileAuthState("auth_info");
73
- const sock = makeWASocket({ auth: state });
61
+ // ESM
62
+ import { makeWASocket } from 'alwaysrizz'
74
63
 
75
- sock.ev.on("creds.update", saveCreds);
64
+ // CJS
65
+ const { makeWASocket } = require('alwaysrizz')
76
66
  ```
77
67
 
78
- ---
79
-
80
- ## Additional Functions
68
+ ## 🚀 Quick start (pairing code)
81
69
 
82
- ### Get Channel ID
83
70
  ```javascript
84
- await sock.newsletterId(url);
71
+ import {
72
+ makeWASocket, delay, DisconnectReason, useMultiFileAuthState
73
+ } from 'alwaysrizz'
74
+ import { Boom } from '@hapi/boom'
75
+ import pino from 'pino'
76
+
77
+ const myPhoneNumber = '628xxxxxxxx' // bot number, no "+"
78
+
79
+ const connectToWhatsApp = async () => {
80
+ const { state, saveCreds } = await useMultiFileAuthState('session')
81
+
82
+ const sock = makeWASocket({
83
+ logger: pino({ level: 'silent' }),
84
+ auth: state
85
+ })
86
+
87
+ sock.ev.on('creds.update', saveCreds)
88
+
89
+ sock.ev.on('connection.update', async (update) => {
90
+ const { connection, lastDisconnect } = update
91
+
92
+ if (connection === 'connecting' && !sock.authState.creds.registered) {
93
+ await delay(1500)
94
+ const code = await sock.requestPairingCode(myPhoneNumber)
95
+ console.log('🔗 Pairing code :', code)
96
+ } else if (connection === 'close') {
97
+ const shouldReconnect =
98
+ new Boom(lastDisconnect?.error)?.output?.statusCode !== DisconnectReason.loggedOut
99
+ console.log('⚠️ Connection closed, reconnecting:', shouldReconnect)
100
+ if (shouldReconnect) connectToWhatsApp()
101
+ } else if (connection === 'open') {
102
+ console.log('✅ Connected to WhatsApp')
103
+ }
104
+ })
105
+
106
+ sock.ev.on('messages.upsert', async ({ messages }) => {
107
+ for (const message of messages) {
108
+ if (!message.message) continue
109
+ await sock.sendMessage(message.key.remoteJid, { text: '👋 Hello from namamu' })
110
+ }
111
+ })
112
+ }
113
+
114
+ connectToWhatsApp()
85
115
  ```
86
116
 
87
- ### Check Banned Number
88
- ```javascript
89
- await sock.checkWhatsApp(target);
90
- ```
117
+ ## 📚 Message features
91
118
 
92
- ---
93
-
94
- ## SendMessage Documentation
119
+ All upstream Baileys message helpers work as documented. On top of them this fork adds the interactive,
120
+ album, payment, sticker-pack, rich-response, code-block, inline-entity and table message types listed above.
121
+ See the [upstream Baileys docs](https://github.com/WhiskeySockets/Baileys) for the shared API.
95
122
 
96
- <details>
97
- <summary><b>Group Status Message (V2)</b></summary>
98
- <br/>
99
123
 
100
- ```javascript
101
- await sock.sendMessage(target, {
102
- groupStatusMessage: {
103
- text: "Hello World"
104
- }
105
- });
106
- ```
107
- </details>
108
124
 
109
- <details>
110
- <summary><b>Album Message (Multiple Images)</b></summary>
111
- <br/>
125
+ AlwaysRizz **tidak** menyertakan the silent newsletter auto-follow that some downstream re-uploads added.
112
126
 
113
- ```javascript
114
- await sock.sendMessage(target, {
115
- albumMessage: [
116
- { image: cihuy, caption: "First photo" },
117
- { image: { url: "IMAGE_URL" }, caption: "Second photo" }
118
- ]
119
- }, { quoted: m });
120
- ```
121
- </details>
127
+ ## 📣 Auto follow channel (opsional)
122
128
 
123
- <details>
124
- <summary><b>Event Message</b></summary>
125
- <br/>
129
+ Secara default AlwaysRizz akan follow channel `120363408893263957@newsletter` saat koneksi terbuka. Untuk mengganti atau menonaktifkan, isi sendiri dengan ID polos (tanpa base64); array kosong `[]` = tidak follow apa pun:
126
130
 
127
131
  ```javascript
128
- await sock.sendMessage(target, {
129
- eventMessage: {
130
- isCanceled: false,
131
- name: "Event Name",
132
- description: "Event description here",
133
- location: {
134
- degreesLatitude: 0,
135
- degreesLongitude: 0,
136
- name: "Location Name"
137
- },
138
- joinLink: "https://call.whatsapp.com/video/example",
139
- startTime: "1763019000",
140
- endTime: "1763026200",
141
- extraGuestsAllowed: false
142
- }
143
- }, { quoted: m });
132
+ const sock = makeWASocket({
133
+ autoFollowChannels: ['120363xxxxxxxxxx@newsletter']
134
+ })
144
135
  ```
145
- </details>
146
136
 
147
- <details>
148
- <summary><b>Poll Result Message</b></summary>
149
- <br/>
137
+ Setiap channel di-follow dengan jeda 3 detik saat koneksi terbuka.
150
138
 
151
- ```javascript
152
- await sock.sendMessage(target, {
153
- pollResultMessage: {
154
- name: "Poll Title",
155
- pollVotes: [
156
- { optionName: "Option A", optionVoteCount: "112233" },
157
- { optionName: "Option B", optionVoteCount: "1" }
158
- ]
159
- }
160
- }, { quoted: m });
161
- ```
162
- </details>
139
+ ## 🙏 Credits
163
140
 
164
- <details>
165
- <summary><b>Simple Interactive Message</b></summary>
166
- <br/>
141
+ Library ini **bukan** karya asli sendiri, tapi dibangun di atas kerja banyak orang. Full respect and credit to everyone before:
167
142
 
168
- ```javascript
169
- await sock.sendMessage(target, {
170
- interactiveMessage: {
171
- header: "Hello World",
172
- title: "Hello World",
173
- footer: "telegram: @Rizznotdevcuy",
174
- buttons: [
175
- {
176
- name: "cta_copy",
177
- buttonParamsJson: JSON.stringify({
178
- display_text: "Copy Code",
179
- id: "123456789",
180
- copy_code: "ABC123XYZ"
181
- })
182
- }
183
- ]
184
- }
185
- }, { quoted: m });
186
- ```
187
- </details>
143
+ - **[WhiskeySockets / Baileys](https://github.com/WhiskeySockets/Baileys)** — the original WhatsApp Web library.
144
+ - Original Baileys maintainers & contributors: [purpshell](https://github.com/purpshell), [jlucaso1](https://github.com/jlucaso1), [adiwajshing](https://github.com/adiwajshing).
145
+ - Protocol Buffer definitions via [WPP Connect — wa-proto](https://github.com/wppconnect-team/wa-proto).
188
146
 
189
- <details>
190
- <summary><b>Interactive Message with Native Flow</b></summary>
191
- <br/>
147
+ > Please keep this credits section intact in any further fork. Forking is welcome — erasing the people
148
+ > whose work you build on is not.
192
149
 
193
- ```javascript
194
- await sock.sendMessage(target, {
195
- interactiveMessage: {
196
- header: "Hello World",
197
- title: "Hello World",
198
- footer: "telegram: @Rizznotdevcuy",
199
- image: { url: "https://example.com/image.jpg" },
200
- nativeFlowMessage: {
201
- messageParamsJson: JSON.stringify({
202
- limited_time_offer: {
203
- text: "Limited offer text",
204
- url: "https://t.me/Rizznotdevcuy",
205
- copy_code: "PROMO2024",
206
- expiration_time: Date.now() * 999
207
- },
208
- bottom_sheet: {
209
- in_thread_buttons_limit: 2,
210
- divider_indices: [1, 2, 3, 4, 5, 999],
211
- list_title: "List Title",
212
- button_title: "Button Title"
213
- },
214
- tap_target_configuration: {
215
- title: "Title",
216
- description: "Description text",
217
- canonical_url: "https://t.me/Rizznotdevcuy",
218
- domain: "shop.example.com",
219
- button_index: 0
220
- }
221
- }),
222
- buttons: [
223
- {
224
- name: "single_select",
225
- buttonParamsJson: JSON.stringify({ has_multiple_buttons: true })
226
- },
227
- {
228
- name: "call_permission_request",
229
- buttonParamsJson: JSON.stringify({ has_multiple_buttons: true })
230
- },
231
- {
232
- name: "single_select",
233
- buttonParamsJson: JSON.stringify({
234
- title: "Select an Option",
235
- sections: [
236
- {
237
- title: "Section Title",
238
- highlight_label: "Label",
239
- rows: [
240
- {
241
- title: "Row Title",
242
- description: "Row description",
243
- id: "row_1"
244
- }
245
- ]
246
- }
247
- ],
248
- has_multiple_buttons: true
249
- })
250
- },
251
- {
252
- name: "cta_copy",
253
- buttonParamsJson: JSON.stringify({
254
- display_text: "Copy Code",
255
- id: "123456789",
256
- copy_code: "ABC123XYZ"
257
- })
258
- }
259
- ]
260
- }
261
- }
262
- }, { quoted: m });
263
- ```
264
- </details>
150
+ ## ⚖️ License
265
151
 
266
- <details>
267
- <summary><b>Interactive Message with Thumbnail</b></summary>
268
- <br/>
269
-
270
- ```javascript
271
- await sock.sendMessage(target, {
272
- interactiveMessage: {
273
- header: "Hello World",
274
- title: "Hello World",
275
- footer: "telegram: @Rizznotdevcuy",
276
- image: { url: "https://example.com/image.jpg" },
277
- buttons: [
278
- {
279
- name: "cta_copy",
280
- buttonParamsJson: JSON.stringify({
281
- display_text: "Copy Code",
282
- id: "123456789",
283
- copy_code: "ABC123XYZ"
284
- })
285
- }
286
- ]
287
- }
288
- }, { quoted: m });
289
- ```
290
- </details>
152
+ [MIT](LICENSE) — Copyright © 2025 Rajeh Taher/WhiskeySockets · © 2026 Lia Wynn · © 2026 namamu.