Download Latest Version wxpy 0.3.9.8 (2017-6-16).zip (112.9 kB)
Email in envelope

Get an email when there's a new version of wxpy

Home / 0.3.9
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2017-04-26 1.4 kB
wxpy 0.3.9 (2017-4-26).tar.gz 2017-04-26 68.8 kB
wxpy 0.3.9 (2017-4-26).zip 2017-04-26 90.3 kB
Totals: 3 Items   160.4 kB 0
  1. [新增] 持续有效,且稳定唯一的聊天对象/用户ID: Chat.puid 属性 (文档)

    请使用 Bot.enable_puid() 来启用 puid

    ```python # 启用 puid 属性,并指定 puid 所需的映射数据保存/载入路径 bot.enable_puid('wxpy_puid.pkl')

    # 指定一个好友
    my_friend = bot.friends().search('游否')[0]
    
    # 查看他的 puid
    print(my_friend.puid)
    # 'edfe8468'
    

    ```

  2. [新增] 程序中通过 .send/reply() 系列方法发出的消息: SentMessage 类 (文档)

    想和好友开个玩笑? python words = '苟******,*******' sent = list() for i in words: sent.append(my_friend.send(i)) # 逐字发送 time.sleep(0.5) for i in sent: i.recall() # 全部撤回

  3. [新增] Message 对象新增 receive_timelatency 属性,分别表示 “接收时间” 和 “接收延迟秒数” (文档)

  4. [新增] 关注公众号 Bot.add_mp() (文档)
  5. [修复] Bot.add_friend() 使用微信号作为参数时,加好友失败的问题
Source: README.md, updated 2017-04-26