Skip to main content

企业微信群机器人消息推送应用

Project description

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

企业微信群机器人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.企业微信群机器人-推送消息类型-text:

wechat_text(top='', title='', content='', users_name=[], users_phone=[], key=None)

功能:@对象支持使用企业微信英文名或手机号、支持 '@all' 或 @多个人;

参数:[content]支持数据类型str/list,列表中的每个元素文本代表一行。

3.企业微信群机器人-推送消息类型-@群成员:

wechat_at(users_name=[], users_phone=[], key=None, content='👆')

功能:@对象支持使用企业微信英文名或手机号,英文名不区分大小写;支持 '@all' 或 @多个人,若无此人则不@且不影响执行推送。

4.企业微信群机器人-推送消息类型-图像:

wechat_image(image, key=None, users=[], content='👆')

参数:[image]支持传入的数据类型-本地图片路径/变量Image/变量bytes;

说明:图片最大不能超过2M,支持JPG、PNG格式。

5.企业微信群机器人-推送消息类型-本地文件:

wechat_file(pathfile, key=None, users=[], content='👆')

参数:[pathfile]传参要求,图片:最大10MB 支持JPG、PNG格式;语音:最大2MB 播放长度不超过60s 支持AMR格式;视频:最大10MB 支持MP4格式;普通文件:最大20MB

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

ahui-1.0.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

ahui-1.0.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file ahui-1.0.0.tar.gz.

File metadata

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

File hashes

Hashes for ahui-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bf4d414aff5eac04547089ed3d5c59cce47e83b3ca82529d6fb30836164b228d
MD5 3c6243db00cacbc06b1e0dc790dfc6a0
BLAKE2b-256 eae998318846a6d9d2dc644c4f07a9a6ac169105ad0ee268106184a3948c9302

See more details on using hashes here.

File details

Details for the file ahui-1.0.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for ahui-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c219b40e2b6cd6df2a740ed384fb07c2d5a73027fcb8189085dde5b154f4ec9
MD5 2cc1c0e80cf1920a3b90ebced7a87c60
BLAKE2b-256 beaf582c4b5fb6067124317eadd3fa9a62434cbfd89a8b2bd985659533982a65

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page