Send message inside Room, if set [replyTo], wechaty will mention the contact as well.
**Kind**: instance method of [<code>Room</code>](#Room)
**Returns**: <code>Promise.<boolean></code> - If bot send message successfully, it will return true. If the bot failed to send for blocking or any other reason, it will return false
-`name` the name-string set by user-self, should be called name, equal to `Contact.name()`
-`roomAlias` | `alias` the name-string set by user-self in the room, should be called roomAlias
-`contactAlias` the name-string set by bot for others, should be called alias, equal to `Contact.alias()`
**Kind**: instance method of [<code>Room</code>](#Room)
| Param | Type | Description |
| --- | --- | --- |
| queryArg | [<code>MemberQueryFilter</code>](#MemberQueryFilter)\|<code>string</code> | When use memberAll(name:string), return all matched members, including name, roomAlias, contactAlias |
Find all contacts in a room, if get many, return the first one.
**Kind**: instance method of [<code>Room</code>](#Room)
| Param | Type | Description |
| --- | --- | --- |
| queryArg | [<code>MemberQueryFilter</code>](#MemberQueryFilter)\|<code>string</code> | When use member(name:string), return all matched members, including name, roomAlias, contactAlias |
**Example***(Find member by name)*
```js
constroom=awaitRoom.find({topic:'wechaty'})// change 'wechaty' to any room name in your wechat
if(room){
constmember=room.member('lijiarui')// change 'lijiarui' to any room member in your wechat
if(member){
console.log(`${room.topic()} got the member: ${member.name()}`)
}else{
console.log(`cannot get member in room: ${room.topic()}`)
}
}
```
**Example***(Find member by MemberQueryFilter)*
```js
constroom=awaitRoom.find({topic:'wechaty'})// change 'wechaty' to any room name in your wechat
if(room){
constmember=room.member({name:'lijiarui'})// change 'lijiarui' to any room member in your wechat
if(member){
console.log(`${room.topic()} got the member: ${member.name()}`)
}else{
console.log(`cannot get member in room: ${room.topic()}`)
**Kind**: instance method of [<code>FriendRequest</code>](#FriendRequest)
**Returns**: <code>Promise.<boolean></code> - Return a Promise, true for accept successful, false for failure.
<aname="Gender"></a>
## Gender : <code>enum</code>
Enum for Gender values.
**Kind**: global enum
**Properties**
| Name | Type | Description |
| --- | --- | --- |
| Unknown | <code>number</code> | 0 for Unknown |
| Male | <code>number</code> | 1 for Male |
| Female | <code>number</code> | 2 for Female |
<aname="AppMsgType"></a>
## AppMsgType : <code>enum</code>
...
...
@@ -1355,62 +294,6 @@ Enum for MsgType values.
| SYS | <code>number</code> | MsgType.SYS (10000) for SYS |
| RECALLED | <code>number</code> | MsgType.RECALLED (10002) for RECALLED |
<aname="ContactQueryFilter"></a>
## ContactQueryFilter
The way to search Contact
**Kind**: global typedef
**Properties**
| Name | Type | Description |
| --- | --- | --- |
| name | <code>string</code> | The name-string set by user-self, should be called name |
| alias | <code>string</code> | The name-string set by bot for others, should be called alias [More Detail](https://github.com/Chatie/wechaty/issues/365) |
<aname="RoomEventName"></a>
## RoomEventName
Room Class Event Type
**Kind**: global typedef
**Properties**
| Name | Type | Description |
| --- | --- | --- |
| join | <code>string</code> | Emit when anyone join any room. |
| topic | <code>string</code> | Get topic event, emitted when someone change room topic. |
| leave | <code>string</code> | Emit when anyone leave the room.<br> If someone leaves the room by themselves, wechat will not notice other people in the room, so the bot will never get the "leave" event. |
| name | <code>string</code> | Find the contact by wechat name in a room, equal to `Contact.name()`. |
| alias | <code>string</code> | Find the contact by alias set by the bot for others in a room, equal to `roomAlias`. |
| roomAlias | <code>string</code> | Find the contact by alias set by the bot for others in a room. |
| contactAlias | <code>string</code> | Find the contact by alias set by the contact out of a room, equal to `Contact.alias()`. [More Detail](https://github.com/Chatie/wechaty/issues/365) |