企业微信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.1.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for wecom_worktool-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae1c4fbfa5b333b1191830f298a81e6cae18f07459538d3475a723d182705d2d |
|
MD5 | ba20e0f35e95d5d679c3dd274138150e |
|
BLAKE2b-256 | 8994b6dddee16df8688268b83316d4c83cfd39787d45b1ccdc2ad9fa4c844a2d |