generated from wechaty/puppet-mock
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
需要详细测试下创建群组的前提条件 #159
Comments
Case 1以好友和非好友一起创建群聊,只有好友被创建到群聊中。 const roomId = await puppet.roomCreate([
SUCHANG,
ZHOU_PENG,
KELLY,
DONGHAO,
RUI_TEST,
], `create room by api ${Math.floor(Math.random() * 1000)}`)
const roomRawPayload = await puppet.roomRawPayload(roomId)
const roomPayload = await puppet.roomRawPayloadParser(roomRawPayload) 日志
Case 2以好友创建群聊,群聊创建成功后,再拉非好友进入群聊。 const roomId = await puppet.roomCreate([
SUCHANG,
ZHOU_PENG,
KELLY,
], `create room by api ${Math.floor(Math.random() * 1000)}`)
const createRoomRawPayload = await puppet.roomRawPayload(roomId)
const createRoomPayload = await puppet.roomRawPayloadParser(createRoomRawPayload)
console.info(`
========================
createRoomPayload: ${JSON.stringify(createRoomPayload)}
========================
`)
await puppet.roomAdd(roomId, DONGHAO)
await puppet.roomAdd(roomId, RUI_TEST)
const addRoomRawPayload = await puppet.roomRawPayload(roomId)
const addRoomPayload = await puppet.roomRawPayloadParser(addRoomRawPayload)
console.info(`
========================
addRoomPayload: ${JSON.stringify(addRoomPayload)}
========================
`) 日志
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
目前来看,只能拉取通讯录中的whatsapp好友才能创建群聊。
如果创建群聊是选择多人(A,B,C,D),A和B是好友,C和D是发过消息的联系人。此时创建出来的群聊中只有三个成员(不包含C,D)。
The text was updated successfully, but these errors were encountered: