Skip to main content

feishubot

Send message to you by feishu bot

Install

pip install feishubot2

If you need send image, you need install with media option

pip install feishubot2[media]

Usage

  1. Set environment FEISHU_APP_ID and FEISHU_APP_SECRET to use feishu api
  2. set FEISHU_PHONE or FEISHU_EMAIL or FEISHU_OPEN_ID for sending message to you

when environment was not set correctly, bot will be disable

Feature

  • Send plain message
  • Send file
  • Send image
  • Send video with cover
  • Send audio
  • Send simple card

Examples

from feishubot import bot

def test_send_text(self):
    bot.send_text("This is a test message.")

def test_send_file(self):
    with open(__file__, "rb") as f:
        bot.send_file(f, "stream")

def test_send_image(self):
    bot.send_image(requests.get("https://random.imagecdn.app/500/150").content)

def send_audio(self):
    with open("test.opus", "rb") as f:
        bot.send_audio(f)

def test_send_media(self):
    with open("test.mp4", "rb") as f:
        bot.send_media(f)

def test_send_card(self):
    bot.send_card("This is a test **message**.", header="Test card")

Metadata

Release files for feishubot2 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for feishubot2 0.0.3
File Size Uploaded Provenance
feishubot2-0.0.3.tar.gz 5.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for feishubot2 0.0.3
File Interpreter ABI Platform
feishubot2-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 10.8 kB

Release files / feishubot2-0.0.3.tar.gz

Download URL feishubot2-0.0.3.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ce0a96fd63812ec12d64ea672407909ee931976994c5f38d50c822fa1e50d44f
BLAKE2b-256 checksum
How to use checksums
d2f87c6e163977ec3616a64a0b622caf8b609ac7381da9721f2eb352be6dcd60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.7

Release files / feishubot2-0.0.3-py3-none-any.whl

Download URL feishubot2-0.0.3-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e8056fadb8165ae7ef54f6d5df704acda1655a75f429f6ccdb976dd261d7f9c6
BLAKE2b-256 checksum
How to use checksums
8c52aad45dcbaa637109e423be63b44d3de229e6902936ab3e0511bdf5b459ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.7

Security for feishubot2 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page