How to use the wechaty.qrcodeValueToImageUrl function in wechaty

To help you get started, we’ve selected a few wechaty examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wechaty / wechaty-getting-started / examples / professional / ctrl-c-signal-bot.ts View on Github external
.on('scan', (qrcode, status, data) => {
  generate(qrcode, { small: true })
  if (data) {
    console.log(data)
  }
  console.log(qrcodeValueToImageUrl(qrcode))
  console.log('^^^ Online QR Code Image URL ^^^ ')
  console.log(`[${status}] ${qrcode} Scan QR Code above url to log in: `)
})
.on('message', async msg => {