Skip to content

Commit

Permalink
Fix add friends bug
Browse files Browse the repository at this point in the history
  • Loading branch information
littlecodersh committed Sep 23, 2016
1 parent 4c2d3b8 commit 77c3ac1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions itchat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from .client import client
from . import content # this is for creating pyc

__version__ = '1.1.6'
__version__ = '1.1.7'

__client = client()
def auto_login(hotReload=False, statusStorageDir='itchat.pkl', enableCmdQR=False):
Expand Down Expand Up @@ -33,7 +33,7 @@ def load_login_status(fileDir='itchat.pkl'): return __client.load_login_status(f
def search_friends(name=None, userName=None, remarkName=None, nickName=None, wechatAccount=None):
return __client.storageClass.search_friends(name, userName, remarkName, nickName, wechatAccount)
def set_alias(userName, alias): return __client.set_alias(userName, alias)
def add_friend(userName, status=2, ticket='', userInfo={}): return __client.add_friend(status, userName, ticket, userInfo)
def add_friend(userName, status=2, ticket='', userInfo={}): return __client.add_friend(userName, status, ticket, userInfo)
def get_mps(update=False): return __client.get_mps(update)
def search_mps(name=None, userName=None): return __client.storageClass.search_mps(name, userName)
def get_chatrooms(update=False): return __client.get_chatrooms(update)
Expand Down

0 comments on commit 77c3ac1

Please sign in to comment.