Skip to content

Commit 75bb0c0

Browse files
authored
Merge pull request #392 from juzibot/fix-send-url-filebox-wechaty
Fix send url filebox wechaty
2 parents 04b5426 + 6055eec commit 75bb0c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wechaty-puppet-whatsapp",
3-
"version": "1.19.15",
3+
"version": "1.19.16",
44
"description": "Wechaty Puppet for WhatsApp",
55
"type": "module",
66
"exports": {

src/puppet-mixin/message.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export async function messageSendFile (this: PuppetWhatsApp, conversationId: str
246246
: path.extname(file.name)
247247
log.silly(PRE, `message type: ${type}, filename: ${file.name}`)
248248
const fileBoxJsonObject: any = file.toJSON() // FIXME: need import FileBoxJsonObject from file-box
249-
const remoteUrl = fileBoxJsonObject.remoteUrl
249+
const remoteUrl = fileBoxJsonObject.url
250250
let msgContent
251251
if (remoteUrl) {
252252
msgContent = await MessageMedia.fromUrl(remoteUrl, { filename: file.name })

0 commit comments

Comments
 (0)