fix(zalouser): enforce group mention gating and typing

This commit is contained in:
Peter Steinberger
2026-03-02 21:53:18 +00:00
parent e5597a8dd4
commit 99a3db6ba9
10 changed files with 419 additions and 14 deletions

View File

@@ -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);
}