esptest.notification.wecom module

esptest.notification.wecom.build_text_payload(content, mentioned_list=None, mentioned_mobile_list=None)[source]
Parameters:
Return type:

Dict[str, Any]

esptest.notification.wecom.build_markdown_payload(content, msgtype='markdown')[source]
Parameters:
Return type:

Dict[str, Any]

esptest.notification.wecom.build_image_payload(base64_content, md5)[source]
Parameters:
  • base64_content (str)

  • md5 (str)

Return type:

Dict[str, Any]

esptest.notification.wecom.build_news_payload(articles)[source]
Parameters:

articles (Sequence[Mapping[str, Any]])

Return type:

Dict[str, Any]

esptest.notification.wecom.build_file_payload(media_id)[source]
Parameters:

media_id (str)

Return type:

Dict[str, Any]

esptest.notification.wecom.build_voice_payload(media_id)[source]
Parameters:

media_id (str)

Return type:

Dict[str, Any]

esptest.notification.wecom.build_template_card_payload(template_card)[source]
Parameters:

template_card (Mapping[str, Any])

Return type:

Dict[str, Any]

esptest.notification.wecom.send_wecom_message(message, webhook_url=None, msgtype='markdown', mentions=None, timeout=10)[source]

Send a WeCom group robot message.

String messages are sent as markdown by default. Mapping messages are sent as already-built WeCom payloads.

Parameters:
Return type:

bool