A simple handy tool for wework text msg sending
Project description
pywework
Handy tool for text message sending in Wechat Work
Package pywework is a handy tool for text message in Wechat Work which is compatible with python2.7+ and python3.6+.
User Guild
Configuration file: /etc/wework/wework.cfg
{
"corpid": "",
"app":
{
"appname":{
"agentid": "",
"secret": "",
"chatid": "",
"robot": "robotname"
}
},
"party":
{
"default": "2"
},
"robot": {
"robotname": "robot hook key"
},
"user":
[
"dev"
]
}
Code talks
from pywework import WeApp
with WeApp("appname") as app:
app.send_app_msg("Hello world")
app.send_app_msg("Hello world", touser="username")
app.send_app_msg("Hello world", touser=["username"])
app.send_roon_msg("Helo world")
app.send_room_msg("Hello world", touser="username")
app.send_room_msg("Hello world", touser=["username", "userphone"])
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
pywework-1.1.5-py2.py3-none-any.whl
(135.4 kB
view hashes)
Close
Hashes for pywework-1.1.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e544036406569b6c9e4294cbd7ad8b4d256b8c3072812310ebd2ced03b479727 |
|
MD5 | 6b5f643a2648c30e9b6e7a5ea7d76661 |
|
BLAKE2b-256 | e64fea6923f8cfe04f1568716768b44a6fa544524edbcc44d721a8ab18e93090 |