Skip to main content

send dingtalk message to dingding webhook robot

Project description


  • 支持所有钉钉消息类型。
  • 支持加签的安全设置。


Python 3.6+


1. 安装requests
pip install requests

2. 安装该模块
pip install dingtalk-webhook


import dingtalk

access_token = ''  # 创建webhook机器人时产生的access_token
secret = 'SECxxxxxxx'  # 如果安全设置没有勾选加签,可不用设置该参数
dt = dingtalk.DingTalk(access_token=access_token, secret=secret)
dt.send_text(text='测试消息', at_all=True)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dingtalk-webhook-1.1.6.tar.gz (3.7 kB view hashes)

Uploaded source

Built Distribution

dingtalk_webhook-1.1.6-py3-none-any.whl (4.1 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page