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

run await message.toContact() get an error

Open atorber opened this issue 4 years ago • 1 comments

          if (type === bot.Message.Type.Contact) {
            messageType = 'Contact'
            textBox = await message.toContact()
          }

(node:83962) UnhandledPromiseRejectionWarning: Error: not implement at PuppetPadlocal.messageContact (/Users/choogoo/WeChatProjects/groupmaster/wechatbot/node_modules/wechaty-puppet-padlocal/dist/puppet-padlocal.js:496:15) at WechatifiedMessage.toContact (/Users/choogoo/WeChatProjects/groupmaster/wechatbot/node_modules/wechaty/dist/src/user/message.js:816:53) at Wechaty. (/Users/choogoo/WeChatProjects/groupmaster/wechatbot/chatbot-pro.js:483:37) at Wechaty.emit (events.js:375:28) at Wechaty.emit (domain.js:470:12) at PuppetPadlocal. (/Users/choogoo/WeChatProjects/groupmaster/wechatbot/node_modules/wechaty/dist/src/wechaty.js:326:34) at processTicksAndRejections (internal/process/task_queues.js:95:5) (node:83962) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 6)

atorber avatar Sep 17 '21 16:09 atorber

This has not been supported yet.

padlocal avatar May 28 '22 17:05 padlocal