Feishuer
This is a msg-robot for feishu
Install
python -m pip install feishuer
Getting Started
send text msg
import feishuer
bot = feishuer.Bot(app_id, app_secret)
msg = {"text": "test content"}
# @single user
# msg = {"text": "<at user_id='ou_xxx'>LiuKe</at> \ntest content"}
# @all user
# msg = {"text": "<at user_id='all'>所有人</at> \ntest content"}
bot.send_msg(msg, 'chat_id'))
send image msg
image_key = bot.upload_image("img_path")
msg = {"image_key": image_key}
bot.send_msg(msg, 'chat_id', 'image')
Features
- Automatically token management
- Get chat id
- Send text msg
- Send rich text
- Send image msg
Contributing
Contributions are welcome.
If you've found a bug within this project, please open an issue to discuss what you would like to change.
If it's an issue with the API, please report any new issues at feishuer issues
Metadata
Release files for feishuer 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| feishuer-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for feishuer-0.2.3-py3-none-any.whl |
Release files / feishuer-0.2.3-py3-none-any.whl
| Download URL | feishuer-0.2.3-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
70056220fe45454cc52fb310d2ecdfbe1e1e99049d50ef45f23fbbe43c9021d1
|
|
BLAKE2b-256 checksum How to use checksums |
dbceb606acc9daaf0fbbef8d68038908ea5f977055e24b822e8923355fa67cfb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.26.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
|
Security for feishuer 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.