Last updated:
0 purchases
PyDingDing 0.1.1
PyDingDing
This is a msg-robot for DingTalk
Install
python -m pip install pydingding
Getting Started
send text msg
import pydingding
token = "c30*****71"
key = "SEC*****"
bot = pydingding.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 pydingding issues
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.