消息实体¶
-
class
dingtalk.model.message.
OaBodyContent
(title=None, content=None, author=None, image=None, file_count=None, forms=<class 'dict'>, rich_num=None, rish_unit=None, **kwargs)[源代码]¶ -
__init__
(title=None, content=None, author=None, image=None, file_count=None, forms=<class 'dict'>, rich_num=None, rish_unit=None, **kwargs)[源代码]¶ OA消息 消息体
参数: - title – 消息体的标题
- content – 消息体的内容,最多显示3行
- author – 自定义的作者名字
- image – 消息体中的图片media_id
- file_count – 自定义的附件数目。此数字仅供显示,钉钉不作验证
- forms – 消息体的表单
- rich_num – 单行富文本信息的数目
- rish_unit – 单行富文本信息的单位
- kwargs –
-
-
class
dingtalk.model.message.
OaBody
(message_url, head_bgcolor, head_text, body, pc_message_url=None, **kwargs)[源代码]¶ -
__init__
(message_url, head_bgcolor, head_text, body, pc_message_url=None, **kwargs)[源代码]¶ OA消息
参数: - message_url – 客户端点击消息时跳转到的H5地址
- head_bgcolor – 消息头部的背景颜色。长度限制为8个英文字符,其中前2为表示透明度,后6位表示颜色值。不要添加0x
- head_text – 消息的头部标题(向普通会话发送时有效,向企业会话发送时会被替换为微应用的名字),长度限制为最多10个字符
- body – OaBodyContent OA消息 消息体
- pc_message_url – PC端点击消息时跳转到的H5地址
- kwargs –
-
-
class
dingtalk.model.message.
SingleActionCardBody
(title, markdown, single_title, single_url, **kwargs)[源代码]¶
-
class
dingtalk.model.message.
BtnActionCardBody
(title, markdown, btn_orientation, btn_list=(), **kwargs)[源代码]¶