fix(dingtalk): correct msgKey parameter for group messages
This commit is contained in:
@@ -315,7 +315,7 @@ class DingTalkChannel(BaseChannel):
|
|||||||
payload = {
|
payload = {
|
||||||
"robotCode": self.config.client_id,
|
"robotCode": self.config.client_id,
|
||||||
"openConversationId": chat_id[6:], # Remove "group:" prefix,
|
"openConversationId": chat_id[6:], # Remove "group:" prefix,
|
||||||
"msgKey": "sampleMarkdown",
|
"msgKey": "msg_key",
|
||||||
"msgParam": json.dumps(msg_param, ensure_ascii=False),
|
"msgParam": json.dumps(msg_param, ensure_ascii=False),
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user