mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 07:57:39 +00:00
fix(zalouser): enforce group mention gating and typing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import type { ZaloSendOptions, ZaloSendResult } from "./types.js";
|
||||
import { sendZaloLink, sendZaloTextMessage } from "./zalo-js.js";
|
||||
import { sendZaloLink, sendZaloTextMessage, sendZaloTypingEvent } from "./zalo-js.js";
|
||||
|
||||
export type ZalouserSendOptions = ZaloSendOptions;
|
||||
export type ZalouserSendResult = ZaloSendResult;
|
||||
@@ -30,3 +30,10 @@ export async function sendLinkZalouser(
|
||||
): Promise<ZalouserSendResult> {
|
||||
return await sendZaloLink(threadId, url, options);
|
||||
}
|
||||
|
||||
export async function sendTypingZalouser(
|
||||
threadId: string,
|
||||
options: Pick<ZalouserSendOptions, "profile" | "isGroup"> = {},
|
||||
): Promise<void> {
|
||||
await sendZaloTypingEvent(threadId, options);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user