玩一下itchat

臭大佬 2019-12-29 13:51:42 1392
Python 
简介 itchat

目录

代码

go.py

# coding=utf8
import sys
sys.path.append('D:\wwwroot\dev.py.net\itchat\lib')
import wechat


wechat.loginTo()

lib/wechat.py

# coding=utf8
import requests
import itchat, time
from itchat.content import *


# @itchat.msg_register(TEXT)
# def _(msg):
#     print(msg)


@itchat.msg_register([PICTURE, RECORDING, ATTACHMENT, VIDEO])
def download_files(msg):
    msg.download(msg.fileName)
    typeSymbol = {
        PICTURE: 'img',
        VIDEO: 'vid', }.get(msg.type, 'fil')
    return '@%s@%s' % (typeSymbol, msg.fileName)


@itchat.msg_register(FRIENDS)
def add_friend(msg):
    msg.user.verify()
    msg.user.send('Nice to meet you!')


# 获取文本信息
# # 获取自己的用户信息,返回自己的属性字典
# itchat.search_friends()
# # 获取特定UserName的用户信息
# itchat.search_friends(userName='@abcdefg1234567')
# # 获取任何一项等于name键值的用户
# itchat.search_friends(name='littlecodersh')
# # 获取分别对应相应键值的用户
# itchat.search_friends(wechatAccount='littlecodersh')
# # 三、四项功能可以一同使用
# itchat.search_friends(name='LittleCoder机器人', wechatAccount='littlecodersh')
# 这里是我们在“1. 实现微信消息的获取”中已经用到过的同样的注册方法
@itchat.msg_register(itchat.content.TEXT)
def tuling_reply(msg):
    # 为了保证在图灵Key出现问题的时候仍旧可以回复,这里设置一个默认回复
    defaultReply = 'I received: ' + msg['Text']
    # 如果图灵Key出现问题,那么reply将会是None
    reply = get_response(msg['Text'])
    # a or b的意思是,如果a有内容,那么返回a,否则返回b
    # 有内容一般就是指非空或者非None,你可以用`if a: print('True')`来测试
    return reply or defaultReply

# 图灵机器人
def get_response(msg):
    # 这里我们就像在“3. 实现最简单的与图灵机器人的交互”中做的一样
    # 构造了要发送给服务器的数据
    apiUrl = 'http://www.tuling123.com/openapi/api'
    data = {
        'key': 'xxxxxxxxxxx',
        'info': msg,
        'userid': 'wechat-robot',
    }
    try:
        r = requests.post(apiUrl, data=data).json()
        # 字典的get方法在字典没有'text'值的时候会返回None而不会抛出异常
        return r.get('text')
    # 为了防止服务器没有正常响应导致程序异常退出,这里用try-except捕获了异常
    # 如果服务器没能正常交互(返回非json或无法连接),那么就会进入下面的return
    except:
        # 将会返回一个None
        return


# 登录触发
def lc():
    print('finish login')


# 退出触发
def ec():
    print('exit')


def test():
    print(111)


'''
hotReload:一定时间内重新开启也可以不用重新扫码
enableCmdQR:登陆的时候使用命令行显示二维码
loginCallback:登录触发
exitCallback:退出触发
'''


def loginTo(hotReload=True, enableCmdQR=2, loginCallback=lc, exitCallback=ec):
    itchat.auto_login(hotReload=hotReload, enableCmdQR=enableCmdQR, loginCallback=loginCallback,
                      exitCallback=exitCallback)
    itchat.run(True)

测试

附录

获取到的数据返回格式

好友信息

{'MsgId': '5064348082278647600', 'FromUserName': '@c2d480b140ad5ac759cecd2ff98f2d3d963d685c94f41e72cafbdad41e4c045a', 'ToUserName': '@ef51130baeeace1e06ddf4965296f89f11179956dccb633067a6274e2a5d7925', 'MsgType': 1, 'Content': '私聊', 'Status': 3, 'I
mgStatus': 1, 'CreateTime': 1577856865, 'VoiceLength': 0, 'PlayLength': 0, 'FileName': '', 'FileSize': '', 'MediaId': '', 'Url': '', 'AppMsgType': 0, 'StatusNotifyCode': 0, 'StatusNotifyUserName': '', 'RecommendInfo': {'UserName': '', 'NickName': '', 'QQNum': 0, 'Province': '', 'City': '', 'Content': '', 'Signature': '', 'Alias': '', 'Scene': 0, 'VerifyFlag': 0, 'AttrStatus': 0, 'Sex': 0, 'Ticket': '', 'OpCode': 0}, 'ForwardFlag': 0, 'AppInfo': {'AppID': '', 'Type': 0}, 'HasProductId': 0, 'Ticket': '', 'ImgHeight': 0, 'ImgWidth': 0, 'SubMsgType': 0, 'NewMsgId': 5064348082278647600, 'OriContent': '', 'EncryFileName': '', 'User': <User: {'MemberList': <ContactList: []>, 'Uin': 0, 'UserName': '@c2d480b140ad5ac759cecd2ff98f2d3d963d685c94f41e72cafbdad41e4c045a', 'NickName': '魏青荣', 'HeadImgUrl': '/cgi-bin/mmwebwx-bin/webw
xgeticon?seq=712627006&username=@c2d480b140ad5ac759cecd2ff98f2d3d963d685c94f41e72cafbdad41e4c045a&skey=@crypt_b78a05a_4956381b7634f495353de2a3c5da741c', 'ContactFlag': 3, 'MemberCount': 0, 'RemarkName': '', 'HideInputBarFlag': 0, 'Sex': 0, 'Signature': '', 'VerifyFlag': 0, 'OwnerUin': 0, 'PYInitial': 'WQR', 'PYQuanPin': 'weiqingrong', 'RemarkPYInitial': '', 'RemarkPYQuanPin': '', 'StarFriend': 0, 'AppAccountFlag': 0, 'Statues': 0, 'AttrStatus': 4133, 'Province': '', 'City': '', 'Alias': '', 'SnsFlag': 0, 'UniFriend': 0, 'DisplayName': '', 'ChatRoomId': 0, 'KeyWord': '', 'EncryChatRoomId': '', 'IsOwner': 0}>, 'Type': 'Text', 'Text': '私聊'}

群消息

{'MsgId': '3286656315753844501', 'FromUserName': '@@7810566da153c98e039ff8cc23349451fef0b1fc6196741343a33313e4609549', 'ToUserName': '@627b134b1d6de4c7650046ae6d667c271a1fa7c7f321bff74be35a314c11390e', 'MsgType': 1, 'Content': '不艾特不回复哈', 'Sta
tus': 3, 'ImgStatus': 1, 'CreateTime': 1577855405, 'VoiceLength': 0, 'PlayLength': 0, 'FileName': '', 'FileSize': '', 'MediaId': '', 'Url': '', 'AppMsgType': 0, 'StatusNotifyCode': 0, 'StatusNotifyUserName': '', 'RecommendInfo': {'UserName': '', 'NickName': '', 'QQNum': 0, 'Province': '', 'City': '', 'Content': '', 'Signature': '', 'Alias': '', 'Scene': 0, 'VerifyFlag': 0, 'AttrStatus': 0, 'Sex': 0, 'Ticket': '', 'OpCode': 0}, 'ForwardFlag': 0, 'AppInfo': {'AppID': '', 'Type': 0}, 'HasProductId': 0, 'Ticket': '', 'ImgHeight': 0, 'ImgWidth': 0, 'SubMsgType': 0, 'NewMsgId': 3286656315753844501, 'OriContent': '', 'EncryFileName': '', 'ActualNickName': 'Vijay', 'IsAt': False, 'ActualUserName': '@6404bd7eba0fa8ffbf7e7b57b04ba8054ad7e15d7f0872b6dd7adb08e9ee0cd1', 'User': <Chatroom: {'MemberList': <ContactList: [<ChatroomMember: {'MemberList': <ContactList: []>, 'Uin': 0, 'UserName': '@6404bd7eba0fa8ffbf7e7b57b04ba8054ad7e15d7f0872b6dd7adb08e9ee0cd1', 'NickName': 'Vijay', 'HeadImgUrl': '/cgi-bin/mmwebwx-bin/webwxgeticon?seq=700639193&username=@6404bd7eba0fa8ffbf7e7b57b04ba8054ad7e15d7f0872b6dd7adb08e9ee0cd1&skey=', 'ContactFlag': 2049, 'MemberCount': 0, 'RemarkName': 'Vijay', 'HideInputBarFlag': 0, 'Sex': 1, 'Signature': '人生一定要
SuckSeed一次,为了梦想。', 'VerifyFlag': 0, 'OwnerUin': 0, 'PYInitial': 'VIJAY', 'P
YQuanPin': 'Vijay', 'RemarkPYInitial': 'VIJAY', 'RemarkPYQuanPin': 'Vijay', 'StarFriend': 0, 'AppAccountFlag': 0, 'Statues': 0, 'AttrStatus': 78949, 'Province': '福建
', 'City': '厦门', 'Alias': '', 'SnsFlag': 17, 'UniFriend': 0, 'DisplayName': '', '
ChatRoomId': 0, 'KeyWord': '', 'EncryChatRoomId': '@35be36e0b91855e508f1812733c2b6c3', 'IsOwner': 0, 'MemberStatus': 0}>, <ChatroomMember: {'MemberList': <ContactList: []>, 'Uin': 0, 'UserName': '@9ff3f5e626a567e395a5873e75bf0de1cc3b8bdc5873bd71667bd00f49800b71', 'NickName': 'null', 'HeadImgUrl': '/cgi-bin/mmwebwx-bin/webwxgeticon?seq=700437091&username=@9ff3f5e626a567e395a5873e75bf0de1cc3b8bdc5873bd71667bd00f49800b71&skey=', 'ContactFlag': 3, 'MemberCount': 0, 'RemarkName': '我会微笑', 'HideI
nputBarFlag': 0, 'Sex': 2, 'Signature': '', 'VerifyFlag': 0, 'OwnerUin': 0, 'PYInitial': 'NULL', 'PYQuanPin': 'null', 'RemarkPYInitial': 'WHWX', 'RemarkPYQuanPin': 'wohuiweixiao', 'StarFriend': 0, 'AppAccountFlag': 0, 'Statues': 0, 'AttrStatus': 4193, 'Province': '福建', 'City': '厦门', 'Alias': '', 'SnsFlag': 256, 'UniFriend': 0,
 'DisplayName': '', 'ChatRoomId': 0, 'KeyWord': '', 'EncryChatRoomId': '@35be36e0b91855e508f1812733c2b6c3', 'IsOwner': 0, 'MemberStatus': 0}>, <ChatroomMember: {'MemberList': <ContactList: []>, 'Uin': 0, 'UserName': '@627b134b1d6de4c7650046ae6d667c271a1fa7c7f321bff74be35a314c11390e', 'NickName': '心若野马', 'HeadImgUrl': '/cgi-bin
/mmwebwx-bin/webwxgeticon?seq=0&username=@627b134b1d6de4c7650046ae6d667c271a1fa7c7f321bff74be35a314c11390e&chatroomid=@35be36e0b91855e508f1812733c2b6c3&skey=', 'ContactFlag': 0, 'MemberCount': 0, 'RemarkName': '', 'HideInputBarFlag': 0, 'Sex': 1, 'Signature': '做个俗人,贪财好色。', 'VerifyFlag': 0, 'OwnerUin': 0, 'PYInitial': 'XR
YM', 'PYQuanPin': 'xinreyema', 'RemarkPYInitial': '', 'RemarkPYQuanPin': '', 'StarFriend': 0, 'AppAccountFlag': 0, 'Statues': 0, 'AttrStatus': 33658885, 'Province': '福建', 'City': '厦门', 'Alias': '', 'SnsFlag': 17, 'UniFriend': 0, 'DisplayName': '
', 'ChatRoomId': 0, 'KeyWord': '', 'EncryChatRoomId': '@35be36e0b91855e508f1812733c2b6c3', 'IsOwner': 0, 'MemberStatus': 0}>]>, 'Uin': 0, 'UserName': '@@7810566da153c98e039ff8cc23349451fef0b1fc6196741343a33313e4609549', 'NickName': '臭大佬', 'HeadIm
gUrl': '/cgi-bin/mmwebwx-bin/webwxgetheadimg?seq=0&username=@@7810566da153c98e039ff8cc23349451fef0b1fc6196741343a33313e4609549&skey=@crypt_b78a05a_90dc70c5e65422e9c2fd0a333fb5a4ed', 'ContactFlag': 3, 'MemberCount': 3, 'RemarkName': '', 'HideInputBarFlag': 0, 'Sex': 0, 'Signature': '', 'VerifyFlag': 0, 'OwnerUin': 0, 'PYInitial': 'CDL', 'PYQuanPin': 'choudalao', 'RemarkPYInitial': '', 'RemarkPYQuanPin': '', 'StarFriend': 0, 'AppAccountFlag': 0, 'Statues': 1, 'AttrStatus': 0, 'Province': '', 'City': '', 'Alias': '', 'SnsFlag': 0, 'UniFriend': 0, 'DisplayName': '', 'ChatRoomId': 0, 'KeyWord': '', 'EncryChatRoomId': '@35be36e0b91855e508f1812733c2b6c3', 'IsOwner': 1, 'IsAdmin': None, 'Self': <ChatroomMember: {'MemberList': <ContactList: []>, 'Uin': 0, 'UserName': '@627b134b1d6de4c7650046ae6d667c271a1fa7c7f321bff74be35a314c11390e', 'NickName': '心若野马', 'HeadImgUrl': '/cgi-bin/mmwebwx-bin/webwxgeticon?se
q=0&username=@627b134b1d6de4c7650046ae6d667c271a1fa7c7f321bff74be35a314c11390e&chatroomid=@35be36e0b91855e508f1812733c2b6c3&skey=', 'ContactFlag': 0, 'MemberCount': 0, 'RemarkName': '', 'HideInputBarFlag': 0, 'Sex': 1, 'Signature': '做个俗人,贪财好
色。', 'VerifyFlag': 0, 'OwnerUin': 0, 'PYInitial': 'XRYM', 'PYQuanPin': 'xinreyema
', 'RemarkPYInitial': '', 'RemarkPYQuanPin': '', 'StarFriend': 0, 'AppAccountFlag': 0, 'Statues': 0, 'AttrStatus': 33658885, 'Province': '福建', 'City': '厦门', 'Alia
s': '', 'SnsFlag': 17, 'UniFriend': 0, 'DisplayName': '', 'ChatRoomId': 0, 'KeyWord': '', 'EncryChatRoomId': '@35be36e0b91855e508f1812733c2b6c3', 'IsOwner': 0, 'MemberStatus': 0}>, 'HeadImgUpdateFlag': 1, 'ContactType': 0, 'ChatRoomOwner': '@627b134b1d6de4c7650046ae6d667c271a1fa7c7f321bff74be35a314c11390e'}>, 'Type': 'Text', 'Text': '不艾特不回复哈'}

通知(红包)

{'MsgId': '2952080224352580527', 'FromUserName': '@@f19467f2ee344e759a33a3f7b1fbee7ffb8cd0136b036172a34b2f5598ecd273', 'ToUserName': '@489c00d238b066679b463f8a11bb7d2479dafa938febb546bdf87cd3e1cd0c2f', 'MsgType': 10000, 'Content': '收到红包,请在手机上查看', 'Status': 3, 'ImgStatus': 1, 'CreateTime': 1579487
751, 'VoiceLength': 0, 'PlayLength': 0, 'FileName': '', 'FileSize': '', 'MediaId': '', 'Url': '', 'AppMsgType': 0, 'StatusNotifyCode': 0, 'StatusNotifyUserName': '', 'RecommendInfo': {'UserName': '', 'NickName': '', 'QQNum': 0, 'Province': '', 'City': '', 'Content': '', 'Signature': '', 'Alias': '', 'Scene': 0, 'VerifyFlag': 0, 'AttrStatus': 0, 'Sex': 0, 'Ticket': '', 'OpCode': 0}, 'ForwardFlag': 0, 'AppInfo': {'AppID': '', 'Type': 0}, 'HasProductId': 0, 'Ticket': '', 'ImgHeight': 0, 'ImgWidth': 0, 'SubMsgType': 0, 'NewMsgId': 2952080224352580527, 'OriContent': '', 'EncryFileName': '', 'ActualUserName': '@489c00d238b066679b463f8a11bb7d2479dafa938febb546bdf87cd3e1cd0c2f', 'ActualNickName': '心若野马', 'IsAt': Fal
se, 'User': <Chatroom: {'MemberList': <ContactList: [<ChatroomMember: {'MemberList': <ContactList: []>, 'Uin': 0, 'UserName': '@2203bf5d34fb93e8972527c41924ee7717d6008832f7afebc931859e045f6c97', 'NickName': 'Vijay', 'HeadImgUrl': '/cgi-bin/mmwebwx-bin/webwxgeticon?seq=700639193&username=@2203bf5d34fb93e8972527c41924ee7717d6008832f7afebc931859e045f6c97&skey=', 'ContactFlag': 2049, 'MemberCount': 0, 'RemarkName': 'Vijay', 'HideInputBarFlag': 0, 'Sex': 1, 'Signature': '人生一定要SuckSeed一次,为了梦想。', 'Verify
Flag': 0, 'OwnerUin': 0, 'PYInitial': 'VIJAY', 'PYQuanPin': 'Vijay', 'RemarkPYInitial': 'VIJAY', 'RemarkPYQuanPin': 'Vijay', 'StarFriend': 0, 'AppAccountFlag': 0, 'Statues': 0, 'AttrStatus': 78949, 'Province': '福建', 'City': '厦门', 'Alias': '', 'SnsFlag': 17, 'UniFriend': 0, 'DisplayName': '', 'ChatRoomId'
: 0, 'KeyWord': '', 'EncryChatRoomId': '@5288123a8d2ae9738250ab6060aa06b0', 'IsOwner': 0}>, <ChatroomMember: {'MemberList': <ContactList: []>, 'Uin': 0, 'UserName': '@fbf6f82b52c25f2587b62f1412de2bbb', 'NickName': '唐伯虎', 'HeadImgUrl': '/cgi-bin/mmwebwx-bin/webwxgeticon?seq=712624095&username=@fbf6f82b52c2
5f2587b62f1412de2bbb&skey=', 'ContactFlag': 2, 'MemberCount': 0, 'RemarkName': '', 'HideInputBarFlag': 0, 'Sex': 1, 'Signature': '小小贱', 'VerifyFlag': 0, 'OwnerUin': 0, 'PYInitial': 'TBH', 'PYQuanPin': 't
angbaihu', 'RemarkPYInitial': '', 'RemarkPYQuanPin': '', 'StarFriend': 0, 'AppAccountFlag': 0, 'Statues': 0, 'AttrStatus': 33653437, 'Province': '福建', 'City': '厦门', 'Alias': '', 'SnsFlag': 257, 'UniFrie
nd': 0, 'DisplayName': '', 'ChatRoomId': 0, 'KeyWord': 'aiq', 'EncryChatRoomId': '@5288123a8d2ae9738250ab6060aa06b0', 'IsOwner': 0}>, <ChatroomMember: {'MemberList': <ContactList: []>, 'Uin': 0, 'UserName': '@72912055d87a97157b2545f8d4544646', 'NickName': '岛屿心情', 'HeadImgUrl': '/cgi-bin/mmwebwx-bin/webwx
geticon?seq=0&username=@72912055d87a97157b2545f8d4544646&chatroomid=@5288123a8d2ae9738250ab6060aa06b0&skey=', 'ContactFlag': 0, 'MemberCount': 0, 'RemarkName': '', 'HideInputBarFlag': 0, 'Sex': 1, 'Signature': '还在升空 不用着落', 'VerifyFlag': 0, 'OwnerUin': 0, 'PYInitial': 'DYXQ', 'PYQuanPin': 'daoyuxinqin
g', 'RemarkPYInitial': '', 'RemarkPYQuanPin': '', 'StarFriend': 0, 'AppAccountFlag': 0, 'Statues': 0, 'AttrStatus': 33796199, 'Province': '福建', 'City': '漳州', 'Alias': '', 'SnsFlag': 273, 'UniFriend': 0,
 'DisplayName': '', 'ChatRoomId': 0, 'KeyWord': 'CHJ', 'EncryChatRoomId': '@5288123a8d2ae9738250ab6060aa06b0', 'IsOwner': 0}>, <ChatroomMember: {'MemberList': <ContactList: []>, 'Uin': 0, 'UserName': '@57b175618e68a9c90930fea3bc734cc34fbf9f8669654f66cd11942af8039c18', 'NickName': '吴龙平', 'HeadImgUrl': '/cg
i-bin/mmwebwx-bin/webwxgeticon?seq=700647563&username=@57b175618e68a9c90930fea3bc734cc34fbf9f8669654f66cd11942af8039c18&skey=', 'ContactFlag': 3, 'MemberCount': 0, 'RemarkName': '吴经理', 'HideInputBarFlag'
: 0, 'Sex': 1, 'Signature': 'Bug尚未修复,岂能儿女情长!', 'VerifyFlag': 0, 'OwnerUin': 0, 'PYInitial':
 'WLP', 'PYQuanPin': 'wulongping', 'RemarkPYInitial': 'WJL', 'RemarkPYQuanPin': 'wujingli', 'StarFriend': 0, 'AppAccountFlag': 0, 'Statues': 0, 'AttrStatus': 102695, 'Province': '福建', 'City': '泉州', 'Ali
as': '', 'SnsFlag': 273, 'UniFriend': 0, 'DisplayName': '', 'ChatRoomId': 0, 'KeyWord': 'wul', 'EncryChatRoomId': '@5288123a8d2ae9738250ab6060aa06b0', 'IsOwner': 0}>, <ChatroomMember: {'MemberList': <ContactList: []>, 'Uin': 0, 'UserName': '@804ec12a6fe6adc881ab1b699b085d877884737f9e71700ac367d63fb00ed6b7', 'NickName': '🥦📂💰', 'HeadImgUrl': '/cgi-bin/mmwebwx-bin/webwxgeticon?seq=0&username=@804ec12a6f
e6adc881ab1b699b085d877884737f9e71700ac367d63fb00ed6b7&chatroomid=@5288123a8d2ae9738250ab6060aa06b0&skey=', 'ContactFlag': 0, 'MemberCount': 0, 'RemarkName': '', 'HideInputBarFlag': 0, 'Sex': 1, 'Signature': '喜欢的多了,以为真的拥有!', 'VerifyFlag': 0, 'OwnerUin': 0, 'PYInitial': '??SPANCLASSEMOJIEMOJI1F4B
0SPAN', 'PYQuanPin': '??spanclassemojiemoji1f4b0span', 'RemarkPYInitial': '', 'RemarkPYQuanPin': '', 'StarFriend': 0, 'AppAccountFlag': 0, 'Statues': 0, 'AttrStatus': 104485, 'Province': '福建', 'City': '龙
岩', 'Alias': '', 'SnsFlag': 257, 'UniFriend': 0, 'DisplayName': '', 'ChatRoomId': 0, 'KeyWord': '', 'E ncryChatRoomId': '@5288123a8d2ae9738250ab6060aa06b0', 'IsOwner': 0}>, <ChatroomMember: {'MemberList': <ContactList: []>, 'Uin': 0, 'UserName': '@489c00d238b066679b463f8a11bb7d2479dafa938febb546bdf87cd3e1cd0c2f', 'NickName': '心若野马', 'HeadImgUrl': '/cgi-bin/mmwebwx-bin/webwxgeticon?seq=0&username=@489c00d2
38b066679b463f8a11bb7d2479dafa938febb546bdf87cd3e1cd0c2f&chatroomid=@5288123a8d2ae9738250ab6060aa06b0&skey=', 'ContactFlag': 0, 'MemberCount': 0, 'RemarkName': '', 'HideInputBarFlag': 0, 'Sex': 1, 'Signature': '做个俗人,贪财好色。', 'VerifyFlag': 0, 'OwnerUin': 0, 'PYInitial': 'XRYM', 'PYQuanPin': 'xinreyem
a', 'RemarkPYInitial': '', 'RemarkPYQuanPin': '', 'StarFriend': 0, 'AppAccountFlag': 0, 'Statues': 0, 'AttrStatus': 33658885, 'Province': '福建', 'City': '厦门', 'Alias': '', 'SnsFlag': 17, 'UniFriend': 0,
'DisplayName': '', 'ChatRoomId': 0, 'KeyWord': '', 'EncryChatRoomId': '@5288123a8d2ae9738250ab6060aa06b0', 'IsOwner': 0}>, <ChatroomMember: {'MemberList': <ContactList: []>, 'Uin': 0, 'UserName': '@536b5d2ca7c3d6ece9f80e92927c1b51bc3817d4c7b9a874575f19b6d36809c1', 'NickName': '1111', 'HeadImgUrl': '/cgi-bin/mmwebwx-bin/webwxgeticon?seq=0&username=@536b5d2ca7c3d6ece9f80e92927c1b51bc3817d4c7b9a874575f19b6d36809c1&chatroomid=@5288123a8d2ae9738250ab6060aa06b0&skey=', 'ContactFlag': 0, 'MemberCount': 0, 'RemarkName': '', 'HideInputBarFlag': 0, 'Sex': 0, 'Signature': '', 'VerifyFlag': 0, 'OwnerUin': 0, 'PYInitial': '1111', 'PYQuanPin': '1111', 'RemarkPYInitial': '', 'RemarkPYQuanPin': '', 'StarFriend': 0, 'AppAccountFlag': 0, 'Statues': 0, 'AttrStatus': 4133, 'Province': '', 'City': '', 'Alias': '', 'SnsFlag': 0, 'UniFriend': 0, 'DisplayName': '', 'ChatRoomId': 0, 'KeyWord': '', 'EncryChatRoomId': '@5288123a8d2ae9738250ab6060aa06b0', 'IsOwner': 0}>]>, 'Uin': 0, 'UserName': '@@f19467f2ee344e759a33a3f7b1fbee7ffb8cd0136b036172a34b2f5598ecd273', 'NickName': '开车!', 'HeadImgUrl': '/cgi-bin/mmwebwx-bin/webwxgetheadimg?seq=7126
54419&username=@@f19467f2ee344e759a33a3f7b1fbee7ffb8cd0136b036172a34b2f5598ecd273&skey=', 'ContactFlag': 3, 'MemberCount': 7, 'RemarkName': '', 'HideInputBarFlag': 0, 'Sex': 0, 'Signature': '', 'VerifyFlag': 0, 'OwnerUin': 0, 'PYInitial': 'KC', 'PYQuanPin': 'kaiche', 'RemarkPYInitial': '', 'RemarkPYQuanPin': '', 'StarFriend': 0, 'AppAccountFlag': 0, 'Statues': 0, 'AttrStatus': 0, 'Province': '', 'City': '', 'Alias': '', 'SnsFlag': 0, 'UniFriend': 0, 'DisplayName': '', 'ChatRoomId': 0, 'KeyWord': '', 'EncryChatRoomId': '@5288123a8d2ae9738250ab6060aa06b0', 'IsOwner': 0, 'IsAdmin': None, 'Self': <ChatroomMember: {'MemberList': <ContactList: []>, 'Uin': 0, 'UserName': '@489c00d238b066679b463f8a11bb7d2479dafa938febb546bdf87cd3e1cd0c2f', 'NickName': '心若野马', 'HeadImgUrl': '/cgi-bin/mmwebwx-bin/webwxgeticon?seq=0&use
rname=@489c00d238b066679b463f8a11bb7d2479dafa938febb546bdf87cd3e1cd0c2f&chatroomid=@5288123a8d2ae9738250ab6060aa06b0&skey=', 'ContactFlag': 0, 'MemberCount': 0, 'RemarkName': '', 'HideInputBarFlag': 0, 'Sex': 1, 'Signature': '做个俗人,贪财好色。', 'VerifyFlag': 0, 'OwnerUin': 0, 'PYInitial': 'XRYM', 'PYQuan
Pin': 'xinreyema', 'RemarkPYInitial': '', 'RemarkPYQuanPin': '', 'StarFriend': 0, 'AppAccountFlag': 0, 'Statues': 0, 'AttrStatus': 33658885, 'Province': '福建', 'City': '厦门', 'Alias': '', 'SnsFlag': 17, '
UniFriend': 0, 'DisplayName': '', 'ChatRoomId': 0, 'KeyWord': '', 'EncryChatRoomId': '@5288123a8d2ae9738250ab6060aa06b0', 'IsOwner': 0}>}>, 'Type': 'Note', 'Text': '收到红包,请在手机上查看'}