企业微信WorkTool机器人API的封装。
Project description
封装功能
- 发送文本
- 发送图片/文件/音频/视频/其他
使用示例
import worktool
with worktool.Worktool("your_robot_id") as bot:
bot.send_file(
["群1", "好友1"],
"文件名.jpg",
"https://your_image_url.jpg",
bot.FileType.IMAGE
)
bot.send_text(
["好友1"],
"Hello world!"
)
bot.send_text(
["群1"],
"Hello world!",
["@所有人"]
)
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
wecom_worktool-0.0.2.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for wecom_worktool-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b6f0fb36a3025be5fa2b165642a4f4d9a0aa45e329939fbde5c97b9e8d394dc |
|
MD5 | efabc9c9954aaeeeb3d220c263f0eed3 |
|
BLAKE2b-256 | 794e9e2e5515e021c9e1aa7803e86a684a9546c5873dfe1efe50d3d2c521cd07 |