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

finish Todo in get_chat_obj #279

Open
wants to merge 2 commits into
base: new-core
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions wxpy/api/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,12 @@ def fetch_contact(_username):
if _username not in self.data.raw_chats:
# Todo: 如果 UserName 为 fmessage 则返回一个昵称为 朋友推荐消息 的聊天对象
# Todo: 如果 UserName 为 filehelper 则返回一个昵称为 文件传输助手 的聊天对象
if _username == 'fmessage':
return Friend(self,{
'UserName': 'fmessage','NickName': '朋友推荐消息',})
elif _username == 'filehelper':
return Friend(self,{
'UserName': 'filehelper','NickName': '文件传输助手',})
self.batch_get_contact(_username)
if _username in self.data.raw_chats:
raw_chat = self.data.raw_chats[_username]
Expand Down