wechaty / puppet-padlocal

Puppet PadLocal is a Pad Protocol for WeChat
https://wechaty.js.org/docs/puppet-providers/padlocal
Apache License 2.0
651 stars 89 forks source link

私聊发送gif图片,有返回值,但是实际在手机端并没有收到。 #15

Open su-chang opened 3 years ago

su-chang commented 3 years ago
14:59:31 VERB Message say(FileBox#Base64<small.gif>)
14:59:31 VERB Message static load(5520244318649141126)
14:59:31 VERB Message constructor(5520244318649141126) for class WechatifiedMessage
14:59:31 VERB Message ready()
14:59:31 VERB Puppet messagePayload(5520244318649141126)
14:59:31 SILL Puppet messagePayloadCache(5520244318649141126) cache MISS
14:59:31 SILL Puppet messagePayload(5520244318649141126) cache SET
14:59:31 SILL Contact ready() @ Puppet#0<PuppetPadlocal>() with id="wxid_8kg1wdu3jvk322"
14:59:31 SILL Contact ready() isReady() true
14:59:31 SILL Contact ready() @ Puppet#0<PuppetPadlocal>() with id="Soul001001"
14:59:31 SILL Contact ready() isReady() true
14:59:31 SILL Message toString() for message type: Image(6)
msg: Message#Image[🗣Contact<疫情小助手>]
padlocal commented 3 years ago

是把 gif 当作文件发送吗?

su-chang commented 3 years ago

应该在接收方呈现为表情动图,而非文件。

fangmuke commented 3 years ago

是把 gif 当作文件发送吗?

是的 我这样设置之后,收到的是一张图片 而非表情动图 image

fangmuke commented 3 years ago

使用以下代码使emoticon正常工作。

const emoticonPayload: EmojiMessagePayload = {
    "cdnurl": "",
    "md5": "",
    "len": ,
    "type": 2,
    "width": ,
    "height": ,
}
const emoticon: FileBox = await FileBox.fromUrl(emoticonPayload.cdnurl)
emoticon.mimeType = "emoticon";
emoticon.metadata = emoticonPayload
room.say(emoticon)

可以关闭这个issue了。

simple890921 commented 2 years ago

使用以下代码使emoticon正常工作。

const emoticonPayload: EmojiMessagePayload = {
    "cdnurl": "",
    "md5": "",
    "len": ,
    "type": 2,
    "width": ,
    "height": ,
}
const emoticon: FileBox = await FileBox.fromUrl(emoticonPayload.cdnurl)
emoticon.mimeType = "emoticon";
emoticon.metadata = emoticonPayload
room.say(emoticon)

可以关闭这个issue了。

请问下 EmojiMessagePayload 这个体里面的内容是必须属于自己已经收藏的表情吗。 还有方便告知下FileBox,wechaty的版本吗