puppet-padlocal icon indicating copy to clipboard operation
puppet-padlocal copied to clipboard

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

Open su-chang opened this issue 5 years ago • 5 comments

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<疫情小助手>]

su-chang avatar Dec 28 '20 07:12 su-chang

是把 gif 当作文件发送吗?

padlocal avatar Jan 01 '21 14:01 padlocal

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

su-chang avatar Jan 03 '21 23:01 su-chang

是把 gif 当作文件发送吗?

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

fangmuke avatar Jan 25 '21 16:01 fangmuke

使用以下代码使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了。

fangmuke avatar Apr 11 '21 13:04 fangmuke

使用以下代码使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的版本吗

simple890921 avatar Mar 10 '22 06:03 simple890921