Closed 9cat closed 3 years ago
By this code const urlLink = message.toUrlLink() console.log(" #######=>"+JSON.stringify(urlLink))
I got empty object for urlLink , expect the data like:
urlLink = new UrlLink ({ description : 'WeChat Bot SDK for Individual Account, Powered by TypeScript, Docker, and Love', thumbnailUrl: 'https://avatars0.githubusercontent.com/u/25162437?s=200&v=4', title : 'Welcome to Wechaty', url : 'https://github.com/wechaty/wechaty', })
So I should get the vaule for urlLink.url.
am I correct?
use
const urlLink = await message.toUrlLink()
Problem solved!
By this code const urlLink = message.toUrlLink() console.log(" #######=>"+JSON.stringify(urlLink))
I got empty object for urlLink , expect the data like:
urlLink = new UrlLink ({ description : 'WeChat Bot SDK for Individual Account, Powered by TypeScript, Docker, and Love', thumbnailUrl: 'https://avatars0.githubusercontent.com/u/25162437?s=200&v=4', title : 'Welcome to Wechaty', url : 'https://github.com/wechaty/wechaty', })
So I should get the vaule for urlLink.url.
am I correct?