Skip to content

Commit

Permalink
Merge pull request #392 from juzibot/fix-send-url-filebox-wechaty
Browse files Browse the repository at this point in the history
Fix send url filebox wechaty
  • Loading branch information
hcfw007 authored Sep 14, 2022
2 parents 04b5426 + 6055eec commit 75bb0c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wechaty-puppet-whatsapp",
"version": "1.19.15",
"version": "1.19.16",
"description": "Wechaty Puppet for WhatsApp",
"type": "module",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion src/puppet-mixin/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export async function messageSendFile (this: PuppetWhatsApp, conversationId: str
: path.extname(file.name)
log.silly(PRE, `message type: ${type}, filename: ${file.name}`)
const fileBoxJsonObject: any = file.toJSON() // FIXME: need import FileBoxJsonObject from file-box
const remoteUrl = fileBoxJsonObject.remoteUrl
const remoteUrl = fileBoxJsonObject.url
let msgContent
if (remoteUrl) {
msgContent = await MessageMedia.fromUrl(remoteUrl, { filename: file.name })
Expand Down

0 comments on commit 75bb0c0

Please sign in to comment.