Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

如何创建群聊 #24

Closed
zbing3 opened this issue Apr 3, 2017 · 3 comments
Closed

如何创建群聊 #24

zbing3 opened this issue Apr 3, 2017 · 3 comments

Comments

@zbing3
Copy link

zbing3 commented Apr 3, 2017

bot.create_group(users=[baisong], topic='test2')
ResponseError: ret: 1101; err_msg:

报错……

@zbing3
Copy link
Author

zbing3 commented Apr 3, 2017

偶尔还有报错:

Exception: Failed to create group:
{'BaseResponse': {'ErrMsg': '请求成功',
                  'RawMsg': '<e>\n'
                            '<ShowType>1</ShowType>\n'
                            '<Content><![CDATA[å\x88\x9b建群è\x81\x8a失败]]></Content>\n'
                            '<Url><![CDATA[]]></Url>\n'
                            '<DispSec>30</DispSec>\n'
                            '<Title><![CDATA[]]></Title>\n'
                            '<Action>4</Action>\n'
                            '<DelayConnSec>0</DelayConnSec>\n'
                            '<Countdown>0</Countdown>\n'
                            '<Ok><![CDATA[]]></Ok>\n'
                            '<Cancel><![CDATA[]]></Cancel>\n'
                            '</e>\n',
                  'Ret': 0},
 'BlackList': '',
 'ChatRoomName': '',
 'MemberCount': 0,
 'MemberList': [],
 'PYInitial': '',
 'QuanPin': '',
 'Topic': ''}

@youfou
Copy link
Owner

youfou commented Apr 3, 2017

1101 错误是微信服务端返回的错误号,这个无解。
后面这个可能是因为你建群时的人数太少了,按微信的要求应该至少要新邀请两个人,也就是总共3个人。

另外Web微信中建群接口是严格限制的,不能频率太高,否则就会报各种奇怪的服务端错误。

@zbing3
Copy link
Author

zbing3 commented Apr 3, 2017

已解决,谢谢!

@zbing3 zbing3 closed this as completed Apr 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants