From 7707101379f9e3ca54c832989bdb6644e48ab9cf Mon Sep 17 00:00:00 2001 From: Bai Date: Tue, 15 Aug 2023 11:02:57 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E9=A3=9E=E4=B9=A6?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E9=80=9A=E7=9F=A5=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/common/sdk/im/feishu/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/common/sdk/im/feishu/__init__.py b/apps/common/sdk/im/feishu/__init__.py index 67d3f2538..99194e5c1 100644 --- a/apps/common/sdk/im/feishu/__init__.py +++ b/apps/common/sdk/im/feishu/__init__.py @@ -116,9 +116,13 @@ class FeiShu(RequestMixin): 'receive_id_type': 'user_id' } + """ + https://open.feishu.cn/document/common-capabilities/message-card/message-cards-content + /using-markdown-tags + """ body = { 'msg_type': 'interactive', - 'content': json.dumps({'elements':[{'tag':'markdown','content': msg}]}) + 'content': json.dumps({'elements': [{'tag': 'markdown', 'content': msg}]}) } invalid_users = []