feishu chatbot api
Project description
简介
基于飞书官方文档,封装的飞书消息机器人接口。支持简单的消息格式校验,获取发送消息所需 file_key, image_key 等。更多使用示例,可参考接口文档。
使用示例
安装
pip install -U feishu-chatbot
发送文本
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
feishu_chatbot-0.0.5.tar.gz
(15.3 kB
view details)
Built Distribution
File details
Details for the file feishu_chatbot-0.0.5.tar.gz
.
File metadata
- Download URL: feishu_chatbot-0.0.5.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | adc1c8dc3249bb4d88865e21869f4a4b27372c9d1d952913fcc7cdf60edc092d |
|
MD5 | c1d29f4753bb88a24c990b622700d1a0 |
|
BLAKE2b-256 | 4b75b8a991508ef27e78c92944f792f8585333d08d1facd8053394a6aca05a67 |
File details
Details for the file feishu_chatbot-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: feishu_chatbot-0.0.5-py3-none-any.whl
- Upload date:
- Size: 24.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3c0629d749089fb9077f309aed5a2a1bffb4439d894e1fdb649e0da758b5085 |
|
MD5 | be28277a6ad49283c7db6693e71a91aa |
|
BLAKE2b-256 | bfa71a783ba3e0c8127386bfb2414bc937f01f9665a8ed4c2014fa09c28ac2b7 |