No project description provided
Project description
pymsy
安装
pip install pymsg
class DingTalkRobot
因钉钉的自定义机器人存在限制:"每个机器人每分钟最多发送20条";为方便使用,该类实例会暂存未发送的消息,并在之后尝试再次发送。
示例
>>> from pymsg import DingTalkRobot
>>> robot = DingTalkRobot('https://oapi.dingtalk.com/robot/send?access_token=***')
>>> robot.text(
... content='我就是我, @1825718**** 是不一样的烟火', # 消息内容
... at='1825718****', # 被@人的手机号, 可传多个
... at_all=False # @所有人,默认:False
... )
0 # 返回暂存队列长度
详细功能请参考代码
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
pymsg-0.2.0.tar.gz
(2.8 kB
view details)
File details
Details for the file pymsg-0.2.0.tar.gz
.
File metadata
- Download URL: pymsg-0.2.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fc37899faa03b6424f38e06807a358c97296136c04c9e646db8102fff6afd93 |
|
MD5 | 91f1c9674d9f964628c2c9521c1a4d4a |
|
BLAKE2b-256 | b7c3ecfc237b5997a737a5d1fd1defbcbca1bad1d1678e4e56bd88831bab4eaf |