Skip to main content

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

feishu_bot-0.0.5-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file feishu_bot-0.0.5.tar.gz.

File metadata

  • Download URL: feishu_bot-0.0.5.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.10

File hashes

Hashes for feishu_bot-0.0.5.tar.gz
Algorithm Hash digest
SHA256 0451d0e95ceb2d1cf860ece8755ea4af7410876b7b16c80d2806ed1ec0c94826
MD5 0780aa9ceccc2071145043b795012339
BLAKE2b-256 7819dcc47423fb3389f106354ec6750ecb52f962db70996168e21af702fa1b33

See more details on using hashes here.

File details

Details for the file feishu_bot-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: feishu_bot-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.10

File hashes

Hashes for feishu_bot-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 aaa943470ccd71c7cb36979bcbbc6765f6e39dd48d710be409d987e78d250369
MD5 01c1a8b0d85e975ee266f1e8db11be6d
BLAKE2b-256 a11f3124e1ef7aff877a945eb4d79b851d620f5c3747d4ec472f4af4609817cd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page