feishu

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 25 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeishuChannel

type FeishuChannel struct {
	*channels.BaseChannel
	// contains filtered or unexported fields
}

func NewFeishuChannel

func NewFeishuChannel(bc *config.Channel, cfg *config.FeishuSettings, bus *bus.MessageBus) (*FeishuChannel, error)

func (*FeishuChannel) ClearToolFeedbackMessage

func (c *FeishuChannel) ClearToolFeedbackMessage(chatID string)

func (*FeishuChannel) DeleteMessage

func (c *FeishuChannel) DeleteMessage(ctx context.Context, chatID, messageID string) error

DeleteMessage implements channels.MessageDeleter.

func (*FeishuChannel) DismissToolFeedbackMessage

func (c *FeishuChannel) DismissToolFeedbackMessage(ctx context.Context, chatID string)

func (*FeishuChannel) EditMessage

func (c *FeishuChannel) EditMessage(ctx context.Context, chatID, messageID, content string) error

EditMessage implements channels.MessageEditor. Uses Message.Patch to update an interactive card message.

func (*FeishuChannel) FinalizeToolFeedbackMessage

func (c *FeishuChannel) FinalizeToolFeedbackMessage(ctx context.Context, msg bus.OutboundMessage) ([]string, bool)

func (*FeishuChannel) ReactToMessage

func (c *FeishuChannel) ReactToMessage(ctx context.Context, chatID, messageID string) (func(), error)

ReactToMessage implements channels.ReactionCapable. Adds a reaction (randomly chosen from config) and returns an undo function to remove it.

func (*FeishuChannel) RecordToolFeedbackMessage

func (c *FeishuChannel) RecordToolFeedbackMessage(chatID, messageID, content string)

func (*FeishuChannel) Send

func (c *FeishuChannel) Send(ctx context.Context, msg bus.OutboundMessage) ([]string, error)

Send sends a message using Interactive Card format for markdown rendering. Falls back to plain text message if card sending fails (e.g., table limit exceeded).

func (*FeishuChannel) SendMedia

func (c *FeishuChannel) SendMedia(ctx context.Context, msg bus.OutboundMediaMessage) ([]string, error)

SendMedia implements channels.MediaSender. Uploads images/files via Feishu API then sends as messages.

func (*FeishuChannel) SendPlaceholder

func (c *FeishuChannel) SendPlaceholder(ctx context.Context, chatID string) (string, error)

SendPlaceholder implements channels.PlaceholderCapable. Sends an interactive card with placeholder text and returns its message ID.

func (*FeishuChannel) Start

func (c *FeishuChannel) Start(ctx context.Context) error

func (*FeishuChannel) Stop

func (c *FeishuChannel) Stop(ctx context.Context) error

func (*FeishuChannel) VoiceCapabilities

func (c *FeishuChannel) VoiceCapabilities() channels.VoiceCapabilities

VoiceCapabilities returns the voice capabilities of the channel.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL