SDK for interacting with Feishu(previously Lark)
Project description
Feishu Bot
Install
pip install feishu_bot
Getting Started
from feishu_bot import FeishuBot
bot = FeishuBot('your_app_id', 'your_app_secret')
await bot.send_text('test')
By default, the message will be sent to all groups where the bot joins. However the optional groups
argument can be set to specify the recipient group(s).
image_key = await bot.upload_image('https://picsum.photos/200/300')
await bot.send_image(image_key, groups='oc_foo')
# If you'd like to send this image to multiple groups
await bot.send_image(image_key, groups=['oc_bar', ''oc_foo'])
Call get_groups
manually to get all the groups visible to the bot:
await bot.get_groups()
Features
- Automatically token management
- Cache embeded
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
feishu_bot-0.0.5.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for feishu_bot-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaa943470ccd71c7cb36979bcbbc6765f6e39dd48d710be409d987e78d250369 |
|
MD5 | 01c1a8b0d85e975ee266f1e8db11be6d |
|
BLAKE2b-256 | a11f3124e1ef7aff877a945eb4d79b851d620f5c3747d4ec472f4af4609817cd |