@itsliaaa/baileys 0.1.21 โ†’ 0.1.22

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.
package/README.md CHANGED
@@ -43,17 +43,17 @@ This fork designed for production use with a focus on clarity and safety:
43
43
  - ๐Ÿ—ƒ๏ธ Added [`@napi-rs/image`](https://www.npmjs.com/package/@napi-rs/image) as a supported image processing backend in [`getImageProcessingLibrary()`](#%EF%B8%8F-image-processing), offering a balance between performance and compatibility.
44
44
 
45
45
  #### ๐Ÿ“จ Message Handling & Compatibility
46
- - ๐Ÿ‘‰๐Ÿป Added support for sending [interactive messages](#-sending-interactive-messages) (buttons, lists, interactive, template, carousel).
46
+ - ๐Ÿ“ฐ Simplified sending messages with ad thumbnail using [`externalAdReply`](#3%EF%B8%8Fโƒฃ-external-ad-reply), without requiring manual `contextInfo`.
47
47
  - ๐Ÿ“ฉ Expanded message support for:
48
48
  - ๐Ÿ–ผ๏ธ [Album Message](#%EF%B8%8F-album-image--video)
49
49
  - ๐Ÿ‘ค [Group Status Message](#4%EF%B8%8Fโƒฃ-group-status)
50
+ - ๐Ÿ‘‰๐Ÿป [Interactive Message](#-sending-interactive-messages) (buttons, lists, native flows, templates, carousels).
50
51
  - ๐ŸŽž๏ธ [Status Mention Message](#%EF%B8%8F-status-mention)
51
52
  - ๐Ÿ“ฆ [Sticker Pack Message](#-sticker-pack)
52
53
  - โœจ [Rich Response Message](#-rich-response) **[NEW]**
53
54
  - ๐Ÿงพ [Message with Code Blocks](#-message-with-code-block) **[NEW]**
54
55
  - ๐Ÿ“‹ [Message with Table](#-message-with-table) **[NEW]**
55
56
  - ๐Ÿ’ณ [Payment-related Message](#-sending-payment-messages) (payment requests, invites, orders, invoices).
56
- - ๐Ÿ“ฐ Simplified sending messages with ad thumbnail using [`externalAdReply`](#3%EF%B8%8Fโƒฃ-external-ad-reply), without requiring manual `contextInfo`.
57
57
 
58
58
  #### ๐Ÿงฉ Additional Message Options
59
59
  - ๐Ÿ‘๏ธ Added optional boolean flags for message handling:
@@ -1257,8 +1257,9 @@ This fork is based on [Baileys (GitHub)](https://github.com/WhiskeySockets/Baile
1257
1257
  > [!IMPORTANT]
1258
1258
  This fork uses Protocol Buffer definitions maintained by [WPP Connect](https://github.com/wppconnect-team) via [`wa-proto`](https://github.com/wppconnect-team/wa-proto)
1259
1259
  >
1260
- > All rights belong to the original Baileys maintainers and contributors:
1261
- > - [WhiskeySockets/Baileys](https://github.com/WhiskeySockets/Baileys)
1260
+ > Full credit goes to the original Baileys maintainers and contributors:
1262
1261
  > - [purpshell](https://github.com/purpshell)
1263
1262
  > - [jlucaso1](https://github.com/jlucaso1)
1264
- > - [adiwajshing](https://github.com/adiwajshing)
1263
+ > - [adiwajshing](https://github.com/adiwajshing)
1264
+ >
1265
+ > This fork includes additional enhancements and modifications by [Lia Wynn](https://github.com/itsliaaa)
@@ -1036,7 +1036,7 @@ export const generateWAMessageContent = async (message, options) => {
1036
1036
  const buttonsMessage = {
1037
1037
  buttons: message.buttons.map(button => {
1038
1038
  // Lia@Changes 12-03-26 --- Add "single_select" shortcut!
1039
- const buttonText = button.text;
1039
+ const buttonText = button.text || button.buttonText;
1040
1040
  if (hasOptionalProperty(button, 'sections')) {
1041
1041
  return {
1042
1042
  nativeFlowInfo: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itsliaaa/baileys",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "Enhanced Baileys v7 with fixed newsletter media upload, plus support for interactive messages, albums, and more message types.",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",