Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法发送UrlLink类型消息 #211

Open
docvirt opened this issue Sep 22, 2022 · 2 comments
Open

无法发送UrlLink类型消息 #211

docvirt opened this issue Sep 22, 2022 · 2 comments

Comments

@docvirt
Copy link

docvirt commented Sep 22, 2022

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

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

Environment:

  • wechaty version ^1.20.2
  • wechaty-puppet-wechat version ^1.18.4

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
Copy link

The node WebProtocol does not support sending MiniProgram and urlslinks

@AlphaCharry
Copy link

wishful thinking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants