A simple API wrapper for WeCom (Worker Wechat) group bot to send msg.
Project description
wecom_bot_msg is a simple wrapper for WeCom (Worker Wechat ) group bot API, to send text, image, audio, files etc in groups, check official docs for more information.
wecom_bot_msg 是给企业微信群机器人 API 的封装,用作发送文本、图片、语音、文件等各类消息,更多信息可以查看官方文档
Installation
Install wecom_bot_msg using pip
pip install wecom_bot_msg
Usage
Simple usage to send text or image
from wecom_bot_msg import WecomBot
bot = WecomBot(api_key='YOUR_API_KEY')
# send text
success, err_msg = bot.send_text('hello')
# send image
success, err_msg = bot.send_image('/LOCAL/PATH/IMAGE')
More examples
# sent text with mentioned list (or mentioned_mobile_list)
bot.send_text('hello', mentioned_list=['kim','kttiy'])
bot.send_text('hello', mentioned_mobile_list=['18688888888','15688888888'])
TODO
- send text
- send image
- send markdown
- upload file
- send audio
- send news
- send template card
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wecom_bot_msg-0.1.1.tar.gz
(3.4 kB
view details)
File details
Details for the file wecom_bot_msg-0.1.1.tar.gz.
File metadata
- Download URL: wecom_bot_msg-0.1.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9892ebfe3d4c12938e66011dea0ff14978bdf0178387fe8731d0419f8e414d6
|
|
| MD5 |
a008551dec3ace73d7444afe3d44d289
|
|
| BLAKE2b-256 |
c8d5448b4a23865ada9ae2319ea38275118cfab5719e4d9d98825560b4eb72eb
|