From 873e6d1ab939b2ff49c28b3963f5dac48c67ee57 Mon Sep 17 00:00:00 2001 From: BoringCat Date: Tue, 15 Aug 2023 10:31:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A3=9E=E4=B9=A6markdown?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=B8=B2=E6=9F=93=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/common/sdk/im/feishu/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/common/sdk/im/feishu/__init__.py b/apps/common/sdk/im/feishu/__init__.py index 087a2fb88..67d3f2538 100644 --- a/apps/common/sdk/im/feishu/__init__.py +++ b/apps/common/sdk/im/feishu/__init__.py @@ -117,8 +117,8 @@ class FeiShu(RequestMixin): } body = { - 'msg_type': 'text', - 'content': json.dumps({'text': msg}) + 'msg_type': 'interactive', + 'content': json.dumps({'elements':[{'tag':'markdown','content': msg}]}) } invalid_users = []