Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MR414N-ID
GitHub Repository: MR414N-ID/botku2
Path: blob/master/node_modules/@adiwajshing/baileys/lib/WABinary/jid-utils.d.ts
1129 views
1
export declare const S_WHATSAPP_NET = "@s.whatsapp.net";
2
export declare const OFFICIAL_BIZ_JID = "[email protected]";
3
export declare const SERVER_JID = "[email protected]";
4
export declare const PSA_WID = "[email protected]";
5
export declare const STORIES_JID = "status@broadcast";
6
export declare type JidServer = 'c.us' | 'g.us' | 'broadcast' | 's.whatsapp.net' | 'call';
7
export declare type JidWithDevice = {
8
user: string;
9
device?: number;
10
};
11
export declare type FullJid = JidWithDevice & {
12
server: JidServer | string;
13
agent?: number;
14
};
15
export declare const jidEncode: (user: string | number | null, server: JidServer, device?: number, agent?: number) => string;
16
export declare const jidDecode: (jid: string | undefined) => FullJid | undefined;
17
/** is the jid a user */
18
export declare const areJidsSameUser: (jid1: string | undefined, jid2: string | undefined) => boolean;
19
/** is the jid a user */
20
export declare const isJidUser: (jid: string | undefined) => boolean | undefined;
21
/** is the jid a broadcast */
22
export declare const isJidBroadcast: (jid: string | undefined) => boolean | undefined;
23
/** is the jid a group */
24
export declare const isJidGroup: (jid: string | undefined) => boolean | undefined;
25
/** is the jid the status broadcast */
26
export declare const isJidStatusBroadcast: (jid: string) => boolean;
27
export declare const jidNormalizedUser: (jid: string) => string;
28
29