Demo send_file and send_emotion
This commit is contained in:
parent
ecfd402dbd
commit
ca0c2dd8a1
@ -43,9 +43,12 @@ def main():
|
||||
ret = wcf.send_text("Hello world.", "filehelper")
|
||||
LOG.info(f"send_text: {ret}")
|
||||
|
||||
ret = wcf.send_image("TEQuant.jpeg", "filehelper")
|
||||
ret = wcf.send_image("TEQuant.jpeg", "filehelper") # 需要确保图片路径正确
|
||||
LOG.info(f"send_image: {ret}")
|
||||
|
||||
ret = wcf.send_file("README.MD", "filehelper") # 需要确保文件路径正确
|
||||
LOG.info(f"send_file: {ret}")
|
||||
|
||||
LOG.info(f"Message types:\n{wcf.get_msg_types()}")
|
||||
LOG.info(f"Contacts:\n{wcf.get_contacts()}")
|
||||
|
||||
@ -64,6 +67,9 @@ def main():
|
||||
ret = wcf.send_xml("filehelper", xml, 0x21)
|
||||
LOG.info(f"send_xml: {ret}")
|
||||
|
||||
ret = wcf.send_emotion("emo.gif", "filehelper") # 需要确保 gif 路径正确
|
||||
LOG.info(f"send_emotion: {ret}")
|
||||
|
||||
# 一直运行
|
||||
wcf.keep_running()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user