Skip to content
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

create_chatroom & add_friend用法询问 #48

Closed
featheraaa opened this issue Jul 27, 2016 · 5 comments
Closed

create_chatroom & add_friend用法询问 #48

featheraaa opened this issue Jul 27, 2016 · 5 comments

Comments

@featheraaa
Copy link

create_chatroom(self, memberList, topic = ''): topic是什么呀
add_friend(self, status, userName, ticket): 这个函数如何传参?
谢谢了,哈哈

@littlecodersh
Copy link
Owner

@featheraaa
topic是chatroom的名字
add_friend需要的三个参数都被存在了好友申请消息产生的msg的Text键值中了,所以可以这么用:

@itchat.msg_register('Friends')
def add_friend(msg):
    itchat.add_friend(**msg['Text'])
    itchat.send_msg('Nice to meet you!', msg['RecommendInfo']['UserName'])

@featheraaa
Copy link
Author

@littlecodersh
哦,我知道了,还以为是主动加好友呢,哈~

@littlecodersh
Copy link
Owner

@featheraaa 好的

@littlecodersh littlecodersh changed the title 好几个函数不懂用法 create_chatroom & add_friend用法询问 Jul 27, 2016
@featheraaa
Copy link
Author

featheraaa commented Jul 27, 2016

@littlecodersh
create_chatroom 创建出来的群是否自动 保存在 通讯录的群组里
因为有时候 手机上创建群聊的时候 会把创建的群不保存在 通讯录的群组里
变成一个零时群,不是永久群

@littlecodersh
Copy link
Owner

@featheraaa 不会的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants