public class SendInput extends Object
LarkChannel.send(...).
The SendInput.Kind enum records the selected shape so the outbound sender
can convert it to the correct Feishu message type.
| 限定符和类型 | 类和说明 |
|---|---|
static class |
SendInput.Kind
Supported outbound message kinds.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static SendInput |
audio(byte[] source,
Integer duration)
Send an opus audio message from bytes.
|
static SendInput |
audio(Object source,
Integer duration)
Send an opus audio message.
|
static SendInput |
audio(String source,
Integer duration)
Send an opus audio message from a URL or local path.
|
static SendInput |
card(Map<String,Object> card)
Send an interactive card JSON object.
|
static SendInput |
file(byte[] source,
String fileName)
Send a file from in-memory bytes.
|
static SendInput |
file(Object source,
String fileName)
Send a file from a supported source.
|
static SendInput |
file(String source,
String fileName)
Send a file from a public URL or local path.
|
SendInput.Kind |
getKind() |
Map<String,Object> |
getObject() |
String |
getText() |
static SendInput |
image(byte[] source)
Send an image from in-memory bytes.
|
static SendInput |
image(Object source)
Send an image from a supported source: URL, local path, byte array or
input stream.
|
static SendInput |
image(String source)
Send an image from a public URL or local path.
|
static SendInput |
markdown(String markdown)
Send Markdown.
|
static SendInput |
post(Map<String,Object> post)
Send a raw Feishu post object.
|
static SendInput |
shareChat(String chatId)
Send a group chat share card.
|
static SendInput |
shareUser(String userId)
Send a user share card.
|
static SendInput |
sticker(String fileKey)
Send a sticker by file key.
|
static SendInput |
text(String text)
Send plain text.
|
static SendInput |
video(byte[] source,
Integer duration,
String coverImageKey)
Send a video/media message from bytes.
|
static SendInput |
video(Object source,
Integer duration,
String coverImageKey)
Send a video/media message.
|
static SendInput |
video(String source,
Integer duration,
String coverImageKey)
Send a video/media message from a URL or local path.
|
public static SendInput markdown(String markdown)
public static SendInput image(byte[] source)
public static SendInput image(Object source)
public static SendInput file(String source, String fileName)
public static SendInput file(Object source, String fileName)
public static SendInput audio(String source, Integer duration)
public static SendInput audio(byte[] source, Integer duration)
public static SendInput audio(Object source, Integer duration)
public static SendInput video(String source, Integer duration, String coverImageKey)
public static SendInput video(byte[] source, Integer duration, String coverImageKey)
public static SendInput video(Object source, Integer duration, String coverImageKey)
public SendInput.Kind getKind()
public String getText()
Copyright © 2026. All rights reserved.