mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Update jid-utils.ts
This commit is contained in:
@@ -46,6 +46,8 @@ export const areJidsSameUser = (jid1: string | undefined, jid2: string | undefin
|
|||||||
)
|
)
|
||||||
/** is the jid a user */
|
/** is the jid a user */
|
||||||
export const isJidUser = (jid: string | undefined) => (jid?.endsWith('@s.whatsapp.net'))
|
export const isJidUser = (jid: string | undefined) => (jid?.endsWith('@s.whatsapp.net'))
|
||||||
|
/** is the jid a group */
|
||||||
|
export const isLidUser = (jid: string | undefined) => (jid?.endsWith('@lid'))
|
||||||
/** is the jid a broadcast */
|
/** is the jid a broadcast */
|
||||||
export const isJidBroadcast = (jid: string | undefined) => (jid?.endsWith('@broadcast'))
|
export const isJidBroadcast = (jid: string | undefined) => (jid?.endsWith('@broadcast'))
|
||||||
/** is the jid a group */
|
/** is the jid a group */
|
||||||
|
|||||||
Reference in New Issue
Block a user