Skip to content

Commit

Permalink
Update docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/api/…
Browse files Browse the repository at this point in the history
…contact-self.md

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
aherman3 and coderabbitai[bot] authored Mar 8, 2024
1 parent a4ae0bb commit b7f04ec
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,6 @@ bot.on('login', async user => {
await file.toFile(name, true)
console.log(`Save bot avatar: ${user.name()} with avatar file: ${name}`)
})
```

**示例** _\(SET the avatar for a bot\)_

```javascript
import { FileBox } from 'file-box'
bot.on('login', user => {
console.log(`user ${user} login`)
const fileBox = FileBox.fromUrl('https://wechaty.github.io/wechaty/images/bot-qr-code.png')
await user.avatar(fileBox)
console.log(`Change bot avatar successfully!`)
})
```

### contactSelf.qrcode\(\) ⇒ `Promise <string>`

Expand Down

0 comments on commit b7f04ec

Please sign in to comment.