feishuer-0.2.3
توضیحات
This is a msg-robot for FeiShu.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | feishuer-0.2.3 |
| نام | feishuer |
| نسخه کتابخانه | 0.2.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/liukecode/pyfeishu |
| آدرس اینترنتی | https://pypi.org/project/feishuer/ |
| مجوز | MIT |
# Feishuer
[](https://github.com/liukecode/pyfeishu/issues)
[](https://github.com/liukecode/pyfeishu/network)
[](https://github.com/liukecode/pyfeishu/stargazers)
[](https://github.com/liukecode/pyfeishu/blob/main/LICENSE)
[](https://github.com/liukecode/pyfeishu/graphs/contributors)
[](https://pypi.org/project/feishuer/)
[](https://pypi.org/project/feishuer/)
[](https://pepy.tech/project/feishuer)
This is a msg-robot for [feishu](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/introduction)
## 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.<br/>
If you've found a bug within this project, please open an issue to discuss what you would like to change.<br/>
If it's an issue with the API, please report any new issues at [feishuer issues](https://github.com/liukecode/pyfeishu)
نیازمندی
| مقدار | نام |
|---|---|
| ==2.26.0 | requests |
| ==0.9.1 | requests-toolbelt |
| ==8.0.1 | tenacity |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl feishuer-0.2.3:
pip install feishuer-0.2.3.whl
نصب پکیج tar.gz feishuer-0.2.3:
pip install feishuer-0.2.3.tar.gz