diff --git a/README.MD b/README.MD
index 596e9da..be0ff7a 100644
--- a/README.MD
+++ b/README.MD
@@ -40,7 +40,7 @@
### Python
* 安装
```sh
-pip install wcferry
+pip install --upgrade wcferry
```
* 运行
@@ -112,6 +112,9 @@ RPC 的通信部分和序列化 / 反序列化部分。
跟 `launcher` 类似,命令行版启动器。
## 版本更新
+### v3.7.0.30.21(2023.03.15)
+* 发送表情
+
### v3.7.0.30.20(2023.03.12)
修复 wxid 获取问题。
diff --git a/python/README.MD b/python/README.MD
index afe79ac..36fa9b4 100644
--- a/python/README.MD
+++ b/python/README.MD
@@ -3,7 +3,7 @@
## 快速开始
```sh
-pip install wcferry
+pip install --upgrade wcferry
```
参考 Demo:
@@ -53,10 +53,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()}")
@@ -75,6 +77,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()
diff --git a/python/demo.py b/python/demo.py
index e38a3e4..e7d969f 100644
--- a/python/demo.py
+++ b/python/demo.py
@@ -63,7 +63,7 @@ def main():
# ret = wcf.add_chatroom_members("chatroom id", "wxid1,wxid2,wxid3,...")
# LOG.info(f"add_chatroom_members: {ret}")
- xml = '叮当药房,24小时服务,28分钟送药到家!叮当快药首家承诺范围内28分钟送药到家!叮当快药核心区域内7*24小时全天候服务,送药上门!叮当快药官网为您提供快捷便利,正品低价,安全放心的购药、送药服务体验。view330https://mp.weixin.qq.com/mp/waerrpage?appid=wxc2edadc87077fa2a&type=upgrade&upgradetype=3#wechat_redirect7f6f49d301ebf47100199b8a4fcf4de4gh_c2b88a38c424@app叮当快药 药店送药到家夜间买药0jpgda0e08f5c7259d03da150d5e7ca6d9503057020100044b30490201000204e4c0232702032f4ef20204a6bace6f02046401f62d042430326337303430352d333734332d343362652d623335322d6233333566623266376334620204012400030201000405004c5376000db26456caf243fbd4efb99058a01d660db26456caf243fbd4efb99058a01d66161558100100pages/index/index.htmlgh_c2b88a38c424@appwxc2edadc87077fa2a1972http://wx.qlogo.cn/mmhead/Q3auHgzwzM4727n0NQ0ZIPQPlfp15m1WLsnrXbo1kLhFGcolgLyc0A/9601_wxc2edadc87077fa2a_29177e9a9b918cb9e75964f80bb8f32e_1677849476_0wxid_eob5qfcrv4zd2201'
+ xml = '叮当药房,24小时服务,28分钟送药到家!叮当快药首家承诺范围内28分钟送药到家!叮当快药核心区域内7*24小时全天候服务,送药上门!叮当快药官网为您提供快捷便利,正品低价,安全放心的购药、送药服务体验。view330https://mp.weixin.qq.com/mp/waerrpage?appid=wxc2edadc87077fa2a&type=upgrade&upgradetype=3#wechat_redirect7f6f49d301ebf47100199b8a4fcf4de4gh_c2b88a38c424@app叮当快药 药店送药到家夜间买药0jpgda0e08f5c7259d03da150d5e7ca6d9503057020100044b30490201000204e4c0232702032f4ef20204a6bace6f02046401f62d042430326337303430352d333734332d343362652d623335322d6233333566623266376334620204012400030201000405004c5376000db26456caf243fbd4efb99058a01d660db26456caf243fbd4efb99058a01d66161558100100pages/index/index.htmlgh_c2b88a38c424@appwxc2edadc87077fa2a1972http://wx.qlogo.cn/mmhead/Q3auHgzwzM4727n0NQ0ZIPQPlfp15m1WLsnrXbo1kLhFGcolgLyc0A/9601_wxc2edadc87077fa2a_29177e9a9b918cb9e75964f80bb8f32e_1677849476_0wxid_xxxxxxxxxxxxxx01'
ret = wcf.send_xml("filehelper", xml, 0x21)
LOG.info(f"send_xml: {ret}")
diff --git a/python/wcferry/client.py b/python/wcferry/client.py
index e4dc62b..533e0e5 100644
--- a/python/wcferry/client.py
+++ b/python/wcferry/client.py
@@ -19,7 +19,7 @@ WCF_ROOT = os.path.abspath(os.path.dirname(__file__))
sys.path.insert(0, WCF_ROOT)
import wcf_pb2 # noqa
-__version__ = "3.7.0.30.20"
+__version__ = "3.7.0.30.21"
def _retry():