企业微信WorkTool机器人API的封装。
Project description
这只是 WorkTool API 的简单封装,以便于能够在各种程序中引入复用。
可以参考 WorkTool的API文档,但部分功能尚未封装。
已封装的功能
- 发送文本
- 发送图片/文件/音频/视频/其他
- 修改群名/群备注/群公告
- 群拉人/踢人/解散/创建
使用示例
安装模块
pip install wecom_worktool
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.4.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for wecom_worktool-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d94c50845f65cf28ccc316da58a877051b0890910e56440fe23baa9618d91c1 |
|
MD5 | 7e3d4b7a8347517a9e53061960693513 |
|
BLAKE2b-256 | b52dcbd06ccd2493209f905f0792376b8c4eca15209460b1e008f01cbe47f45f |