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
Metadata
Release files for wecom-bot-msg 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wecom_bot_msg-0.1.1.tar.gz | 3.4 kB | Without provenance | Details for wecom_bot_msg-0.1.1.tar.gz |
Release files / wecom_bot_msg-0.1.1.tar.gz
| Download URL | wecom_bot_msg-0.1.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9892ebfe3d4c12938e66011dea0ff14978bdf0178387fe8731d0419f8e414d6
|
|
BLAKE2b-256 checksum How to use checksums |
c8d5448b4a23865ada9ae2319ea38275118cfab5719e4d9d98825560b4eb72eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Security for wecom-bot-msg 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.