SkillHub

feishu-sender

v1.0.1

Send messages and files to Feishu (Lark) via Open API. Supports text, markdown, any file format, and images. Use when user needs to send notifications, reports, or any content to Feishu/Lark groups or chats.

Sourced from ClawHub, Authored by Tim

Installation

Please help me install the skill `feishu-sender` from SkillHub official store. npx skills add zhendexuebuhui/feishu-sender

Feishu Sender

飞书(Lark)消息发送工具,支持主动推送文本、文件和图片到指定群聊。

Quick Start

from feishu_sender import FeishuSender

sender = FeishuSender()
sender.send_text("Hello Feishu!")
sender.send_file("report.pdf")

CLI Usage

python3 scripts/send.py --text "Hello"
python3 scripts/send.py --file report.pdf
python3 scripts/send.py --text "Report" --files "a.docx,b.pdf"

Configuration

Set environment variables or create .env:

FEISHU_APP_ID=cli_xxxxx
FEISHU_APP_SECRET=xxxxxxxx
FEISHU_CHAT_ID=oc_xxxxxx

Get credentials from Feishu Open Platform.

Resources

  • feishu_sender.py - Core module with FeishuSender class
  • scripts/send.py - CLI entry point