@manybot/manybot 4.3.0 → 4.3.1
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/package.json +1 -1
- package/src/kernel/pluginApi.js +2 -2
package/package.json
CHANGED
package/src/kernel/pluginApi.js
CHANGED
|
@@ -226,9 +226,9 @@ function makeSender(target) {
|
|
|
226
226
|
const media = MessageMedia.fromFilePath(filePath);
|
|
227
227
|
return target.sendMessage(media, { caption });
|
|
228
228
|
},
|
|
229
|
-
async audio(filePath) {
|
|
229
|
+
async audio(filePath, { asVoice = true } = {}) {
|
|
230
230
|
const media = MessageMedia.fromFilePath(filePath);
|
|
231
|
-
return target.sendMessage(media, { sendAudioAsVoice:
|
|
231
|
+
return target.sendMessage(media, { sendAudioAsVoice: asVoice });
|
|
232
232
|
},
|
|
233
233
|
async sticker(source) {
|
|
234
234
|
const media = mediaFromSource(source);
|