企业微信群机器人-推送消息类型的多种应用
企业微信群机器人key:
可以通过函数 wechat_key() 定义默认的群机器人key
1.1.企业微信群机器人-推送消息类型-markdown:
wechat_markdown(top='', title='', content='', user='', links={}, df_links={}, show_cols=False, key=None)参数:[content]支持传入字符串(str)/列表(list)/数据框(DataFrame);[df_links]支持多个链接字段,默认参数空;
说明:只支持@1个人/不支持@all;@对象为企业微信英文名,英文名不区分大小写;若@对象无此人仍正常推送消息内容;
系统:适用于 Windows、Linux 系统环境下的Python3版本。
1.2.企业微信群机器人-推送消息类型-markdown:
wechat_markdowns(top='', title='', content='', user='', links={}, df_links={}, show_cols=False, key=None)简介:基于 wechat_markdown() 函数的二次封装开发;功能上支持@多人、支持推送多个群;
参数:[user]支持传入数据类型str/list; [key]支持数据类型str/list,当传入多个元素则用列表形式。
2.1.企业微信群机器人-推送消息类型-text:
wechat_text(top='', title='', content='', users_name=[], users_phone=[], key=None)功能:@对象支持使用企业微信英文名或手机号、支持 '@all' 或 @多个人;
参数:[content]支持数据类型str/list,列表中的每个元素文本代表一行。
3.1.企业微信群机器人-推送消息类型-@群成员:
wechat_at(users_name=[], users_phone=[], key=None, content='👆')功能:@对象支持使用企业微信英文名或手机号,英文名不区分大小写;支持 '@all' 或 @多个人,若无此人则不@且不影响执行推送。
4.1.企业微信群机器人-推送消息类型-图像:
wechat_image(image, key=None, users=[], content='👆')参数:[image]支持传入的数据类型-本地图片路径/变量Image/变量bytes;
说明:图片最大不能超过2M,支持JPG、PNG格式。
5.1.企业微信群机器人-推送消息类型-本地文件:
wechat_file(pathfile, key=None, users=[], content='👆')参数:[pathfile]传参要求,图片:最大10MB 支持JPG、PNG格式;语音:最大2MB 播放长度不超过60s 支持AMR格式;视频:最大10MB 支持MP4格式;普通文件:最大20MB
5.2.企业微信群机器人-推送消息类型-本地文件:
wechat_files(pathfiles, key=None, users=[], content='👆')简介:基于 wechat_file() 函数的二次封装开发;功能上支持批量推送多个文件。
Metadata
Release files for ahuiwechat 1.0.3
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 |
|---|---|---|---|---|
| ahuiwechat-1.0.3.tar.gz | 6.3 kB | Without provenance | Details for ahuiwechat-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ahuiwechat-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for ahuiwechat-1.0.3-py3-none-any.whl |
Total release size: 13.5 kB
Release files / ahuiwechat-1.0.3.tar.gz
| Download URL | ahuiwechat-1.0.3.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd3d7ba8605811032089d8dbf80dafce1dcafdf708356375f80e4cc4a6772e73
|
|
BLAKE2b-256 checksum How to use checksums |
4c0d2906c860eed69d461fb8ffb4b929c2f8dc08e4b3e515669ea37c44dea0a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.7
|
Release files / ahuiwechat-1.0.3-py3-none-any.whl
| Download URL | ahuiwechat-1.0.3-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
873cc687aba7a650dd4767dafb92d0a91ef780f49d0e5376a262494ddae5f87b
|
|
BLAKE2b-256 checksum How to use checksums |
f14ee12237225fbcb7ae29da39d5dc44faf0413df5ad6fc169cd9d4b319b67e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.7
|
Security for ahuiwechat 1.0.3
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.