企业微信WorkTool机器人API的封装。
Project description
这只是 WorkTool API 的简单封装,以便于能够在各种程序中引入复用。
可以参考 WorkTool的API文档,但部分功能尚未封装。
已封装的功能
- 发送文本
- 发送图片/文件/音频/视频/其他
- 发送腾讯文档/收集表
- 发送微盘图片
- 添加群成员
- 移除群成员
- 修改群名
- 修改公告
- 修改群备注
- 解散群
- 添加待办
- 添加好友(从手机号)
- 添加好友(从群)
- 移除好友
- 修改好友
使用示例
安装模块
pip install wecom_worktool
from wecom_worktool import Worktool
with 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.1.1.tar.gz
(19.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wecom_worktool-0.1.1.tar.gz.
File metadata
- Download URL: wecom_worktool-0.1.1.tar.gz
- Upload date:
- Size: 19.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.30
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60e59e680108ccb6b1ecff7852f0e9ec1a38a4fce84dafab8e14da6bbc6ef5b9
|
|
| MD5 |
d49475e13ae6ba941a50c4b3c237f058
|
|
| BLAKE2b-256 |
4e0eed593ebc5292175af8e8e7010b89858d5680ef3e56a13801277c558d90af
|
File details
Details for the file wecom_worktool-0.1.1-py3-none-any.whl.
File metadata
- Download URL: wecom_worktool-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.30
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c736bcc3e82d983b3fa7296336bee246172004a332d19f755040b88b52792d6c
|
|
| MD5 |
a07cd205a65750dd93f9cfc86a5ec497
|
|
| BLAKE2b-256 |
a66206308343698fae9eda5fdc05c143917a17fdc950f95c335bc19ae322ed5d
|