Skip to content

Commit 70b81f6

Browse files
author
linya.jj
committed
feat: release v0.5.1 增加机器人离线提示词
1 parent 11edd6e commit 70b81f6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dingtalk_stream/chatbot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def __str__(self):
195195

196196
class ChatbotHandler(CallbackHandler):
197197

198-
def set_off_duty_prompt(self, text: str, title: str, logo: str):
198+
def set_off_duty_prompt(self, text: str, title: str = "", logo: str = ""):
199199
"""
200200
设置离线提示词,需要使用OpenAPI,当前仅支持自建应用。
201201
:param text: 离线提示词
@@ -301,8 +301,8 @@ def reply_markdown(self,
301301
def reply_card(self,
302302
card_data: dict,
303303
incoming_message: ChatbotMessage,
304-
at_sender: bool,
305-
at_all: bool) -> str:
304+
at_sender: bool = False,
305+
at_all: bool = False) -> str:
306306
"""
307307
回复互动卡片。由于sessionWebhook不支持发送互动卡片,所以需要使用OpenAPI,当前仅支持自建应用。
308308
https://open.dingtalk.com/document/orgapp/robots-send-interactive-cards

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='dingtalk-stream',
5-
version='0.5.0',
5+
version='0.5.1',
66
description='A Python library for sending messages to DingTalk chatbot',
77
long_description=open('README.md').read(),
88
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)