- Preparing search index...
- The search index is not available
baileys
Type alias BaileysEventMap
Type declaration
-
blocklist.set: {
blocklist: string[];
}
-
blocklist.update: {
blocklist: string[];
type: "add" | "remove";
}
-
blocklist: string[]
-
type: "add" | "remove"
-
-
chats.delete: string[]
-
chats.phoneNumberShare: {
jid: string;
lid: string;
}
-
-
chats.upsert: Chat[]
-
-
contacts.update: Partial<Contact>[]
-
contacts.upsert: Contact[]
-
-
group-participants.update: {
action: ParticipantAction;
author: string;
id: string;
participants: string[];
}
-
-
author: string
-
id: string
-
participants: string[]
-
group.join-request: {
action: RequestJoinAction;
author: string;
id: string;
method: RequestJoinMethod;
participant: string;
}
-
-
author: string
-
id: string
-
-
participant: string
-
-
-
labels.association: {
association: LabelAssociation;
type: "add" | "remove";
}
-
association: LabelAssociation
-
type: "add" | "remove"
-
labels.edit: Label
-
-
messages.delete: {
keys: WAMessageKey[];
} | {
all: true;
jid: string;
}
-
messages.media-update: {
error?: Boom;
key: WAMessageKey;
media?: {
ciphertext: Uint8Array;
iv: Uint8Array;
};
}[]
-
messages.reaction: {
key: WAMessageKey;
reaction: IReaction;
}[]
-
-
messages.upsert: {
messages: WAMessage[];
requestId?: string;
type: MessageUpsertType;
}
-
-
Optional
requestId?: string
-
-
messaging-history.set: {
chats: Chat[];
contacts: Contact[];
isLatest?: boolean;
messages: WAMessage[];
peerDataRequestSessionId?: string | null;
progress?: number | null;
syncType?: proto.HistorySync.HistorySyncType;
}
-
chats: Chat[]
-
-
Optional
isLatest?: boolean
-
-
Optional
peerDataRequestSessionId?: string | null
-
Optional
progress?: number | null
-
-
presence.update: {
id: string;
presences: {
[participant: string]: PresenceData;
};
}
-
id: string
-
presences: {
[participant: string]: PresenceData;
}
Receive an update on a call, including when the call was received, rejected, accepted