pywayne-lark-bot-listener

Route Feishu/Lark messages to async handlers via Python decorators.

8|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/wangyendt/wayne-skills --skill pywayne-lark-bot-listener
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pywayne-lark-bot-listener
Source: https://github.com/wangyendt/wayne-skills/tree/main/pywayne/lark-bot-listener
Command: npx skills add https://github.com/wangyendt/wayne-skills --skill pywayne-lark-bot-listener

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Feishu/Lark teams need reliable, real-time message processing with minimal prompting and built-in safety features. This Skill provides a Python-based listener that captures incoming text, image, file, and rich-post messages via WebSocket, deduplicates messages, and exposes convenient decorators for handling each type.

Core Features & Use Cases

  • Text, image, file, and rich-post handling via decorators (text_handler, image_handler, file_handler, listen)
  • Automatic deduplication, async processing, and optional auto-replies to streamline workflows
  • Seamless integration into existing Python projects for building reactive messaging bots

Quick Start

Initialize the LarkBotListener with Feishu app credentials, register your text, image, and file handlers, and call run to start listening.

Frequently Asked Questions about pywayne-lark-bot-listener

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I listen to real-time Feishu messages in Python?

Listen to real-time Feishu messages in Python by initializing a WebSocket listener with your app credentials and registering async handlers. The listener routes incoming group and private chat events directly to your defined functions.

Can I handle different Feishu message types like images and files separately?

You can handle different Feishu message types separately using Python decorators. The listener exposes text_handler, image_handler, and file_handler decorators to route each specific message format to its dedicated async function.

How do I prevent duplicate message processing in a Lark bot?

Prevent duplicate message processing in a Lark bot through the listener's built-in automatic deduplication feature. This mechanism safely filters repeated events before they reach your async message handlers.

What is the best way to build an async Lark bot with auto-reply capabilities?

Build an async Lark bot with auto-reply capabilities by using a Python listener that processes WebSocket events and supports optional automatic replies. Decorators allow seamless integration into existing reactive messaging workflows.

Do I need a specific Python environment to set up a Feishu message listener?

A Python environment is required to set up a Feishu message listener and run the async WebSocket connection. You supply your Feishu app credentials to initialize the listener before registering handlers.

Can I process rich-post messages from Feishu group chats?

You can process rich-post messages from Feishu group chats by routing WebSocket events to user-defined async handlers. The listener captures text, image, file, and rich-post formats across both group and private chats.