mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Add lid to Contact - contact sync, history sync, group participants (#1472)
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
export interface Contact {
|
||||
/** ID either in lid or jid format **/
|
||||
id: string
|
||||
/** ID in Lid (anonymous) format (@lid) **/
|
||||
lid?: string
|
||||
/** ID in Phone Number format (@s.whatsapp.net) **/
|
||||
jid?: string
|
||||
/** name of the contact, you have saved on your WA */
|
||||
name?: string
|
||||
/** name of the contact, the contact has set on their own on WA */
|
||||
|
||||
@@ -4,7 +4,6 @@ export type GroupParticipant = Contact & {
|
||||
isAdmin?: boolean
|
||||
isSuperAdmin?: boolean
|
||||
admin?: 'admin' | 'superadmin' | null
|
||||
jid?: string | undefined
|
||||
}
|
||||
|
||||
export type ParticipantAction = 'add' | 'remove' | 'promote' | 'demote' | 'modify'
|
||||
|
||||
Reference in New Issue
Block a user