企业微信机器人发送消息
Project description
wxgbot
用于发送企业微信机器人消息,如文本、图片、文件 是对微信机器人的简单封装,其他可参考腾讯企业微信官网说明 https://work.weixin.qq.com/help?person_id=1&doc_id=13376&helpType=undefined
安装
可以直接 pip 安装
pip install wxgbot
举例
from wxgbot.send_msg 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-3.0.tar.gz
(1.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
wxgbot-3.0-py3-none-any.whl
(2.4 kB
view details)
File details
Details for the file wxgbot-3.0.tar.gz.
File metadata
- Download URL: wxgbot-3.0.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8de15cb54de14f1f7564eed493a6d3399d58288289ea2b7f120a091fb010f80b
|
|
| MD5 |
d1beea3d78a4634d21dbdb4bc46bf8e9
|
|
| BLAKE2b-256 |
141fbc64dec73cf7caad9ca77cc8f8197927478a007de1f079f3141e93b143da
|
File details
Details for the file wxgbot-3.0-py3-none-any.whl.
File metadata
- Download URL: wxgbot-3.0-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38803555e7bba00650df104c6aef4dc4064e1bbfe5a82b81bb01d1e2c74d60b1
|
|
| MD5 |
3afd0f788390881507594e0ef2bfacf6
|
|
| BLAKE2b-256 |
1606fbb39bbc6e594816be3d735a6b3950a0808aceec07272180ec5393e23c48
|