feishu-chatbot-0.0.5
توضیحات
feishu chatbot api
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | feishu-chatbot-0.0.5 |
| نام | feishu-chatbot |
| نسخه کتابخانه | 0.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | RexYan |
| ایمیل نویسنده | rex_yan@126.com |
| آدرس صفحه اصلی | https://github.com/rexyan/feishu_chatbot |
| آدرس اینترنتی | https://pypi.org/project/feishu-chatbot/ |
| مجوز | MIT |
### 简介
基于[飞书官方文档](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/im-v1/message/create_json#5d353271),封装的飞书消息机器人接口。支持简单的消息格式校验,获取发送消息所需 file_key, image_key 等。更多使用示例,可参考[接口文档](./docs/docs.md)。
### 使用示例
**安装**
```shell
pip install -U feishu-chatbot
```
**发送文本**
```python
from chatbot import ChatBotClient, TextChatBot
client = ChatBotClient(app_id="xxx", app_secret='xxx')
user = client.get_user_id_by_email("jack@gmail.com")
data = {
"msg_type": "text",
"content": {"text": "示例文本消息"},
"receive_id": user["open_id"],
}
chatbot = TextChatBot.set_client(client).set_data(data).build()
chatbot.send()
```
نیازمندی
| مقدار | نام |
|---|---|
| >=0.12.2 | voluptuous |
| >=2.25.0 | requests |
نحوه نصب
نصب پکیج whl feishu-chatbot-0.0.5:
pip install feishu-chatbot-0.0.5.whl
نصب پکیج tar.gz feishu-chatbot-0.0.5:
pip install feishu-chatbot-0.0.5.tar.gz