Skip to main content

PyDingTalk

GitHub issues GitHub forks GitHub stars GitHub license contributors PyPI PyPI - Python Version Downloads

This is a msg-robot for DingTalk

Install

python -m pip install pydingtalk

Getting Started

send text msg

import pydingtalk

token = "c30*****71"
key = "SEC*****"
bot = pydingtalk.Bot(token, key)
data = {"msgtype": "text","text": {"content":"LiuKeTest"}}
bot.bot_send(data)

# @ user
# data = {"at": {"atMobiles": ["18xxx", "13xxx"]}, "msgtype": "text","text""": {"content":"LiuKeTest"}}
# @ all user
# data = {"at": {"isAtAll": True}, "msgtype": "text","text""": {"content":"LiuKeTest"}}
bot.send_msg(msg, 'chat_id'))

send link

data = {"msgtype": "link", "link": {"text":"LiuKeTest", "title": "Test", "picUrl": "https://xxx", "messageUrl": "https://xxx"}}

send link

data = {"msgtype": "markdown", "markdown": {"title": "LiuKeTest", "text": "### LiuKeTest @138XXXXXXXX \n > [pydingtalk](https://pypi.org/project/pydingtalk)"}}

More message types, please visit DingTalk.

Features

  • Supports all types message

Contributing

Contributions are welcome.
If you've found a bug within this project, please open an issue to discuss what you would like to change.
If it's an issue with the API, please report any new issues at pydingtalk issues

Release files for PyDingTalk 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for PyDingTalk 0.1.2
File Interpreter ABI Platform
PyDingTalk-0.1.2-py3-none-any.whl Python 3 none any Details

Release files / PyDingTalk-0.1.2-py3-none-any.whl

Download URL PyDingTalk-0.1.2-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51bb0feb4aea4c3a6280313e44e92f74aa42661dc71f7c30977b1efc804b5e21
BLAKE2b-256 checksum
How to use checksums
d707e8dc97efcc1e81a3deab6e13a1cff8e2ed01f61d7a440616569ee17c6b79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.7.9

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page