/** * A WhatsApp group's import identity: cotton-rules' `import::group` * (crates/cotton-rules/src/import/group.rs; the event grammar stays with the * Mac's readers), asked through the rules module. */ import { rule } from "../rules/index.ts"; export const GROUP_EXTERNAL_KEY_PREFIX = "wa:group:"; /** A title as its slug: what a group's external key is made of. */ export function slugifyTitle(title: string): string { return rule("group.slug", title); } /** `wa:group:`. */ export function groupExternalKey(title: string): string { return rule("group.key", title); }