wechaty / puppet-wechat

Wechaty Puppet Provider for WeChat
https://www.npmjs.com/package/wechaty-puppet-wechat
Apache License 2.0
418 stars 71 forks source link

无法发送UrlLink类型消息 #211

Open docvirt opened 2 years ago

docvirt commented 2 years ago

Is this a BUG REPORT or FEATURE REQUEST?: /kind bug

What happened: 无法发送UrlLink类型消息

Environment:

How to reproduce it (as minimally and precisely as possible):

import {UrlLink,WechatyBuilder,ScanStatus,log} from 'wechaty'
...
const linkPayload = new UrlLink({
    description : '欢迎收听来自:'+singer_name+"的歌曲",
    thumbnailUrl: pic_url,
    title       : '歌曲:'+song_name,
    url         : usic_url,
 })
msg.talker().say(linkPayload)
...
SyntaxError: The requested module 'wechaty' does not provide an export named 'UrlLink'
?[90m    at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)?[39m
?[90m    at async ModuleJob.run (node:internal/modules/esm/module_job:181:5)?[39m
    at async Promise.all (index 0)
?[90m    at async ESMLoader.import (node:internal/modules/esm/loader:281:24)?[39m
?[90m    at async loadESM (node:internal/process/esm_loader:88:5)?[39m
?[90m    at async handleMainPromise (node:internal/modules/run_main:65:12)?[39m

我是node初学者,请问我改如何调用发送UrlLink消息

AlphaCharry commented 2 years ago

The node WebProtocol does not support sending MiniProgram and urlslinks

AlphaCharry commented 2 years ago

wishful thinking