Skip to main content

企业微信群机器人-推送消息类型的多种应用

企业微信群机器人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() 函数的二次封装开发;功能上支持批量推送多个文件。

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ahuiwechat-1.0.3.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ahuiwechat-1.0.3-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file ahuiwechat-1.0.3.tar.gz.

File metadata

  • Download URL: ahuiwechat-1.0.3.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for ahuiwechat-1.0.3.tar.gz
Algorithm Hash digest
SHA256 dd3d7ba8605811032089d8dbf80dafce1dcafdf708356375f80e4cc4a6772e73
MD5 012079301e94aecc653ac68217d055bb
BLAKE2b-256 4c0d2906c860eed69d461fb8ffb4b929c2f8dc08e4b3e515669ea37c44dea0a2

See more details on using hashes here.

File details

Details for the file ahuiwechat-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: ahuiwechat-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for ahuiwechat-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 873cc687aba7a650dd4767dafb92d0a91ef780f49d0e5376a262494ddae5f87b
MD5 0cb68d0c6f25ea10169b7206dbb8148f
BLAKE2b-256 f14ee12237225fbcb7ae29da39d5dc44faf0413df5ad6fc169cd9d4b319b67e2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page