From b7f04ecf3eb2e628b921a6d44ebbf1b35e2164b0 Mon Sep 17 00:00:00 2001 From: Annie Hermann <55369934+aherman3@users.noreply.github.com> Date: Fri, 8 Mar 2024 17:32:05 +0800 Subject: [PATCH] Update docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/api/contact-self.md Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .../current/api/contact-self.md | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/api/contact-self.md b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/api/contact-self.md index 8f4402f79b1..a719d193860 100644 --- a/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/api/contact-self.md +++ b/docusaurus/i18n/zh/docusaurus-plugin-content-docs/current/api/contact-self.md @@ -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 `