Skip to main content

企业微信机器人发送消息

Project description

wxgbot

用于发送企业微信机器人消息,如文本、图片、文件 是对微信机器人的简单封装,其他可参考腾讯企业微信官网说明 https://work.weixin.qq.com/help?person_id=1&doc_id=13376&helpType=undefined

安装

可以直接 pip 安装

pip install wxgbot

举例

from wxgbot import *
#test_bot是群机器人的key
test_bot = r"**********************************"
coment = r"牛逼哄哄带闪电!"
#发送文本消息
send_text(text = coment,bot = test_bot)      #bot是群机器人的key
#发送其他消息
send_markdown(text,bot)        #text是markdown语法的,
send_img(file_path,bot)        #file_path是文件路径
send_file(file_path,bot)

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

wxgbot-1.4.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

wxgbot-1.4-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

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