@juzi/wechaty-puppet-whatsapp
Version:
Wechaty Puppet for WhatsApp
28 lines • 1.12 kB
TypeScript
import type * as PUPPET from '@juzi/wechaty-puppet';
import type { GroupNotification, WhatsAppContactPayload } from '../../schema/whatsapp-type.js';
export declare function genRoomTopicEvent(notification: GroupNotification, roomPayload: WhatsAppContactPayload): PUPPET.payloads.EventRoomTopic;
export declare function genRoomJoinEvent(notification: GroupNotification, members: string[]): PUPPET.payloads.EventRoomJoin;
export declare function genRoomAnnounce(notification: GroupNotification, description: string): {
ack: number;
author: string;
body: string;
broadcast: boolean;
forwardingScore: number;
from: string;
fromMe: boolean;
hasMedia: boolean;
hasQuotedMsg: boolean;
id: import("../../schema/whatsapp-type.js").GroupNotificationId;
isEphemeral: boolean;
isForwarded: boolean;
isGif: boolean;
isStarred: boolean;
isStatus: boolean;
links: never[];
mentionedIds: never[];
timestamp: number;
to: string;
type: import("@juzi/whatsapp-web.js").MessageTypes;
vCards: never[];
};
//# sourceMappingURL=room-event-generator.d.ts.map