Skip to content

Commit 9e35861

Browse files
authored
Merge pull request #501 from offu/release_1.10.0
chore(release): version 1.10.0
2 parents 2203821 + 483c793 commit 9e35861

File tree

5 files changed

+39
-21
lines changed

5 files changed

+39
-21
lines changed

.bumpversion.cfg

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/changelog.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
Changelog
22
=============
3+
4+
Version 1.10.0
5+
----------------
6+
+ 在 Client 中增加对 :ref:`上传图文消息素材` 的支持 ( `#493 <https://github.com/offu/WeRoBot/pull/493>`_ )
7+
+ 在 Client 中增加对 :ref:`群发接口` 的支持 ( `#493 <https://github.com/offu/WeRoBot/pull/493>`_ )
8+
39
Version 1.9.0
410
----------------
511
+ 在 Client 中增加对 :ref:`用户标签管理` 的支持 ( `#426 <https://github.com/offu/WeRoBot/pull/426>`_ )

docs/client.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,16 @@
8080
.. automethod:: Client.send_news_message
8181
.. automethod:: Client.send_miniprogrampage_message
8282

83+
群发接口
84+
``````````````````````````````
85+
86+
.. automethod:: Client.send_mass_msg
87+
.. automethod:: Client.delete_mass_msg
88+
.. automethod:: Client.send_mass_preview_to_user
89+
.. automethod:: Client.get_mass_msg_status
90+
.. automethod:: Client.get_mass_msg_speed
91+
.. automethod:: Client.delete_mass_msg
92+
8393
用户管理
8494
------------
8595

@@ -161,6 +171,11 @@
161171

162172
.. automethod:: Client.delete_permanent_media
163173

174+
上传图文消息素材
175+
``````````````````````````````
176+
177+
.. automethod:: Client.upload_news
178+
164179
修改永久图文素材
165180
``````````````````````````````
166181
详细请参考 http://mp.weixin.qq.com/wiki/10/c7bad9a463db20ff8ccefeedeef51f9e.html

werobot/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '1.9.0'
1+
__version__ = '1.10.0'
22
__author__ = 'whtsky'
33
__license__ = 'MIT'
44

werobot/client.py

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,19 +1148,23 @@ def untag_users(self, tag_id, open_id_list):
11481148

11491149
def upload_news(self, articles):
11501150
"""
1151-
上传图文消息素材。
1152-
具体请参考:https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Batch_Sends_and_Originality_Checks.html#1
1153-
articles = [{
1154-
"thumb_media_id":"qI6_Ze_6PtV7svjolgs-rN6stStuHIjs9_DidOHaj0Q-mwvBelOXCFZiq2OsIU-p",
1155-
"author":"xxx",
1156-
"title":"Happy Day",
1157-
"content_source_url":"www.qq.com",
1158-
"content":"content",
1159-
"digest":"digest",
1160-
"show_cover_pic":1,
1161-
"need_open_comment":1,
1162-
"only_fans_can_comment":1
1163-
}]
1151+
上传图文消息素材 ::
1152+
1153+
articles = [{
1154+
"thumb_media_id":"qI6_Ze_6PtV7svjolgs-rN6stStuHIjs9_DidOHaj0Q-mwvBelOXCFZiq2OsIU-p",
1155+
"author":"xxx",
1156+
"title":"Happy Day",
1157+
"content_source_url":"www.qq.com",
1158+
"content":"content",
1159+
"digest":"digest",
1160+
"show_cover_pic":1,
1161+
"need_open_comment":1,
1162+
"only_fans_can_comment":1
1163+
}]
1164+
1165+
具体请参考: https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Batch_Sends_and_Originality_Checks.html#1
1166+
1167+
11641168
:param articles: 上传的图文消息数据。
11651169
:return: 返回的 JSON 数据包。
11661170
"""

0 commit comments

Comments
 (0)