Skip to content

Feishu/Lark: audio resource download uses unsupported type=audio (should use type=file) #8746

@willgeek

Description

@willgeek

Bug: Feishu/Lark audio resource download uses unsupported type=audio (should be type=file)

Summary

When receiving Feishu audio messages, the gateway attempts to download the resource using:

GET /im/v1/messages/:message_id/resources/:file_key?type=audio

This returns HTTP 400.

Per Feishu official docs, the type query parameter only supports image or file, and audio/video should be fetched using type=file.

Environment

  • Channel: Feishu/Lark
  • Package: openclaw-cn 2026.2.3 (Homebrew install) (but the same Feishu channel code appears to be vendored from upstream)

Steps to reproduce

  1. Send a voice message to the bot in Feishu.
  2. Observe the media download request.

Actual behavior

Audio download fails (HTTP 400).

Expected behavior

Audio resource should be downloaded successfully.

Reference

Feishu docs: https://open.feishu.cn/document/server-docs/im-v1/message/get-2

  • type=image: images
  • type=file: files, audio, video (except stickers)

Suggested fix

For message_type === "audio", call messageResource.get with type="file".
Optionally keep downstream metadata/placeholder as <media:audio>.

Code pointers

  • feishu/download audio branch currently passes type="audio" to the resource endpoint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleMarked as stale due to inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions