wechaty / python-wechaty

Python Wechaty is a Conversational RPA SDK for Chatbot Makers written in Python
https://wechaty.readthedocs.io/zh_CN/latest/
Apache License 2.0
1.56k stars 229 forks source link

🐛🐛 Bug Report: ContactPayload has no friends fields #308

Open linpan opened 2 years ago

linpan commented 2 years ago
  def is_friend(self) -> Optional[bool]:
        """
        Check if contact is friend

        False for not friend of the bot, null for unknown.
        """
        if not self.payload or not self.payload.friend:
            return None
        return self.payload.friends

建议 多谢一些单元测试,

wj-Mcat commented 2 years ago

Thanks for your good suggestion, there are limit contributors and energy for the opensource project. But we are trying our best to improve the quality of the project.