Browse Source

perf: 优化飞书信息通知文案

pull/11275/head^2
Bai 1 year ago committed by Bryan
parent
commit
7707101379
  1. 6
      apps/common/sdk/im/feishu/__init__.py

6
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 = []

Loading…
Cancel
Save