| 程序包 | 说明 |
|---|---|
| com.lark.oapi.channel | |
| com.lark.oapi.channel.normalize | |
| com.lark.oapi.channel.safety |
| 限定符和类型 | 方法和说明 |
|---|---|
BotIdentity |
LarkChannel.connectSync()
Blocking variant of
LarkChannel.connect() for command-line tools and
traditional servlet applications that do not want to manage futures. |
BotIdentity |
LarkChannel.getBotIdentity()
Bot identity resolved by
LarkChannel.connect(), or null before the
channel is connected. |
| 限定符和类型 | 方法和说明 |
|---|---|
CompletableFuture<BotIdentity> |
LarkChannel.connect()
Resolve the current bot identity and start the WebSocket transport when
configured.
|
| 限定符和类型 | 方法和说明 |
|---|---|
BotIdentity |
NormalizeOptions.getBotIdentity() |
| 限定符和类型 | 方法和说明 |
|---|---|
static MentionState |
Mentions.extract(Mention[] mentionEvents,
String rawContent,
BotIdentity botIdentity) |
static MentionState |
Mentions.extract(MentionEvent[] mentionEvents,
String rawContent,
BotIdentity botIdentity) |
| 构造器和说明 |
|---|
NormalizeOptions(BotIdentity botIdentity,
boolean includeRawInMessage,
boolean stripBotMentions) |
NormalizeOptions(BotIdentity botIdentity,
boolean includeRawInMessage,
boolean stripBotMentions,
NormalizeOptions.SubMessageFetcher subMessageFetcher,
NormalizeOptions.SenderNameResolver senderNameResolver) |
NormalizeOptions(BotIdentity botIdentity,
boolean includeRaw,
boolean stripBotMentions,
NormalizeOptions.SubMessageFetcher fetchSubMessages,
NormalizeOptions.UserNameResolver resolveUserName,
NormalizeOptions.UserNameResolver resolveSenderName,
NormalizeOptions.BatchResolveNames batchResolveNames) |
| 限定符和类型 | 方法和说明 |
|---|---|
BotIdentity |
PolicyGate.getBotIdentity() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
PolicyGate.setBotIdentity(BotIdentity botIdentity) |
void |
SafetyPipeline.setBotIdentity(BotIdentity botIdentity) |
| 构造器和说明 |
|---|
SafetyPipelineOptions(LarkChannelOptions.SafetyConfig config,
LarkChannelOptions.PolicyConfig policy,
ICache cache,
BotIdentity botIdentity,
OnReject onReject,
OnMessageDispatch onMessage) |
Copyright © 2026. All rights reserved.