| 程序包 | 说明 |
|---|---|
| com.lark.oapi.channel | |
| com.lark.oapi.channel.model | |
| com.lark.oapi.channel.outbound |
| 限定符和类型 | 方法和说明 |
|---|---|
CompletableFuture<SendResult> |
LarkChannel.send(String to,
SendInput input)
Send a new message or reply according to
SendOptions. |
CompletableFuture<SendResult> |
LarkChannel.send(String to,
SendInput input,
SendOptions sendOptions) |
SendResult |
LarkChannel.sendSync(String to,
SendInput input)
Blocking variant of
LarkChannel.send(String, SendInput). |
SendResult |
LarkChannel.sendSync(String to,
SendInput input,
SendOptions sendOptions)
Blocking variant of
LarkChannel.send(String, SendInput, SendOptions). |
| 限定符和类型 | 方法和说明 |
|---|---|
static SendInput |
SendInput.audio(byte[] source,
Integer duration)
Send an opus audio message from bytes.
|
static SendInput |
SendInput.audio(Object source,
Integer duration)
Send an opus audio message.
|
static SendInput |
SendInput.audio(String source,
Integer duration)
Send an opus audio message from a URL or local path.
|
static SendInput |
SendInput.card(Map<String,Object> card)
Send an interactive card JSON object.
|
static SendInput |
SendInput.file(byte[] source,
String fileName)
Send a file from in-memory bytes.
|
static SendInput |
SendInput.file(Object source,
String fileName)
Send a file from a supported source.
|
static SendInput |
SendInput.file(String source,
String fileName)
Send a file from a public URL or local path.
|
static SendInput |
SendInput.image(byte[] source)
Send an image from in-memory bytes.
|
static SendInput |
SendInput.image(Object source)
Send an image from a supported source: URL, local path, byte array or
input stream.
|
static SendInput |
SendInput.image(String source)
Send an image from a public URL or local path.
|
static SendInput |
SendInput.markdown(String markdown)
Send Markdown.
|
static SendInput |
SendInput.post(Map<String,Object> post)
Send a raw Feishu post object.
|
static SendInput |
SendInput.shareChat(String chatId)
Send a group chat share card.
|
static SendInput |
SendInput.shareUser(String userId)
Send a user share card.
|
static SendInput |
SendInput.sticker(String fileKey)
Send a sticker by file key.
|
static SendInput |
SendInput.text(String text)
Send plain text.
|
static SendInput |
SendInput.video(byte[] source,
Integer duration,
String coverImageKey)
Send a video/media message from bytes.
|
static SendInput |
SendInput.video(Object source,
Integer duration,
String coverImageKey)
Send a video/media message.
|
static SendInput |
SendInput.video(String source,
Integer duration,
String coverImageKey)
Send a video/media message from a URL or local path.
|
| 限定符和类型 | 方法和说明 |
|---|---|
SendResult |
OutboundSender.send(String to,
SendInput input,
SendOptions sendOptions) |
Copyright © 2026. All rights reserved.