@wppconnect-team/wppconnect
Version:
WPPConnect is an open source project developed by the JavaScript community with the aim of exporting functions from WhatsApp Web to the node, which can be used to support the creation of any interaction, such as customer service, media sending, intelligen
24 lines (23 loc) • 533 B
TypeScript
export interface PresenceEvent {
/**
* ID of contact or group
*/
id: string;
isOnline: boolean;
isGroup: boolean;
isUser: boolean;
state: 'available' | 'composing' | 'recording' | 'unavailable';
/**
* Timestramp of event `Date.now()`
*/
t: number;
/**
* If is an user, check is a contact
*/
isContact?: boolean;
participants?: {
id: string;
state: 'available' | 'composing' | 'recording' | 'unavailable';
shortName: string;
}[];
}