Send message to userSelf, in other words, bot send message to itself.
> Tips:
This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/Chatie/wechaty/wiki/Puppet#3-puppet-compatible-table)
...
...
@@ -333,7 +333,7 @@ This function is depending on the Puppet Implementation, see [puppet-compatible-
| Param | Type | Description |
| --- | --- | --- |
| textOrContactOrFile | <code>string</code>\|[<code>Contact</code>](#Contact)\|<code>FileBox</code> | send text, Contact, or file to bot. </br> You can use [FileBox](https://www.npmjs.com/package/file-box) to send file |
| textOrContactOrFileOrUrl | <code>string</code>\|[<code>Contact</code>](#Contact)\|<code>FileBox</code> | send text, Contact, or file to bot. </br> You can use [FileBox](https://www.npmjs.com/package/file-box) to send file |
**Example**
```js
...
...
@@ -396,7 +396,8 @@ All wechat rooms(groups) will be encapsulated as a Room.
Send message inside Room, if set [replyTo], wechaty will mention the contact as well.
> Tips:
This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/Chatie/wechaty/wiki/Puppet#3-puppet-compatible-table)
...
...
@@ -428,7 +439,7 @@ This function is depending on the Puppet Implementation, see [puppet-compatible-
| Param | Type | Description |
| --- | --- | --- |
| textOrContactOrFile | <code>string</code>\|[<code>Contact</code>](#Contact)\|<code>FileBox</code> | Send `text` or `media file` inside Room. <br> You can use [FileBox](https://www.npmjs.com/package/file-box) to send file |
| textOrContactOrFileOrUrl | <code>string</code>\|[<code>Contact</code>](#Contact)\|<code>FileBox</code> | Send `text` or `media file` inside Room. <br> You can use [FileBox](https://www.npmjs.com/package/file-box) to send file |
| [mention] | [<code>Contact</code>](#Contact)\|[<code>Array.<Contact></code>](#Contact) | Optional parameter, send content inside Room, and mention @replyTo contact or contactList. |
**Example**
...
...
@@ -475,7 +486,7 @@ await bot.start()
// after logged in...
constroom=awaitbot.Room.find({topic:'topic of your room'})// change `event-room` to any room topic in your wechat
This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/Chatie/wechaty/wiki/Puppet#3-puppet-compatible-table)
...
...
@@ -930,7 +942,7 @@ This function is depending on the Puppet Implementation, see [puppet-compatible-
| Param | Type | Description |
| --- | --- | --- |
| textOrContactOrFile | <code>string</code>\|[<code>Contact</code>](#Contact)\|<code>FileBox</code> | send text, Contact, or file to contact. </br> You can use [FileBox](https://www.npmjs.com/package/file-box) to send file |
| textOrContactOrFileOrUrl | <code>string</code>\|[<code>Contact</code>](#Contact)\|<code>FileBox</code> | send text, Contact, or file to contact. </br> You can use [FileBox](https://www.npmjs.com/package/file-box) to send file |
**Example**
```js
...
...
@@ -1080,6 +1092,16 @@ const name = file.name
awaitfile.toFile(name,true)
console.log(`Contact: ${contact.name()} with avatar file: ${name}`)
@@ -1639,6 +1703,18 @@ Extract the Contact Card from the Message, and encapsulate it into Contact class
This function is depending on the Puppet Implementation, see [puppet-compatible-table](https://github.com/Chatie/wechaty/wiki/Puppet#3-puppet-compatible-table)
**Kind**: instance method of [<code>Message</code>](#Message)
<aname="Message.find"></a>
### Message.find()
Find message in cache
**Kind**: static method of [<code>Message</code>](#Message)
<aname="Message.findAll"></a>
### Message.findAll()
Find messages in cache
**Kind**: static method of [<code>Message</code>](#Message)
<aname="RoomInvitation"></a>
## RoomInvitation
...
...
@@ -1738,7 +1814,7 @@ The option parameter to create a wechaty instance
| Name | Type | Description |
| --- | --- | --- |
| profile | <code>string</code> | Wechaty Name. </br> When you set this: </br>`new Wechaty({profile: 'wechatyName'}) `</br> it will generate a file called `wechatyName.memory-card.json`. </br> This file stores the bot's login information. </br> If the file is valid, the bot can auto login so you don't need to scan the qrcode to login again. </br> Also, you can set the environment variable for `WECHATY_PROFILE` to set this value when you start. </br> eg: `WECHATY_PROFILE="your-cute-bot-name" node bot.js` |
| puppet | [<code>PuppetName</code>](#PuppetName)\|<code>Puppet</code> | Puppet name or instance |
| puppet | <code>PuppetModuleName</code>\|<code>Puppet</code> | Puppet name or instance |