@ryuu-reinzz/haruka-lib 3.2.5 → 3.2.6

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 (2) hide show
  1. package/main/socket.js +7 -3
  2. package/package.json +1 -1
package/main/socket.js CHANGED
@@ -121,7 +121,10 @@ export default function addProperty(socket, baileys) {
121
121
  })
122
122
  },
123
123
 
124
- sendSticker: async (jid, options = {}) => {
124
+ sendSticker: async (jid, options = {}, other = {}) => {
125
+ const {
126
+ contextInfo = {}
127
+ } = options;
125
128
  try {
126
129
  if (!options.sticker)
127
130
  throw new Error('Please enter the path or buffer of the sticker.')
@@ -151,8 +154,9 @@ export default function addProperty(socket, baileys) {
151
154
 
152
155
  const buffer = await sticker.build()
153
156
  const result = await socket.sendMessage(jid, {
154
- sticker: buffer
155
- })
157
+ sticker: buffer,
158
+ contextInfo
159
+ }, other)
156
160
 
157
161
  if (Buffer.isBuffer(options.sticker)) fs.unlinkSync(stickerPath)
158
162
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ryuu-reinzz/haruka-lib",
3
- "version": "3.2.5",
3
+ "version": "3.2.6",
4
4
  "description": "Library extra for bot WhatsApp",
5
5
  "main": "main/index.js",
6
6
  "type": "module",