plogme 2.0.4 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1526 -5
- package/lib/Socket/chats.js +3 -0
- package/lib/Socket/messages-send.js +178 -9
- package/lib/Utils/messages.js +10 -1
- package/lib/Utils/rich-message-utils.js +270 -33
- package/lib/index.d.ts +29 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -247,6 +247,13 @@ export interface AnimatedWallpaperInput {
|
|
|
247
247
|
opacity?: number;
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
+
export interface A2UIMessageContent {
|
|
251
|
+
image?: unknown;
|
|
252
|
+
bloksWidget?: { type?: string; data?: unknown; fallback?: string };
|
|
253
|
+
nativeFlowMessage?: { messageParamsJson?: string; buttons?: unknown[]; [key: string]: unknown };
|
|
254
|
+
[key: string]: unknown;
|
|
255
|
+
}
|
|
256
|
+
|
|
250
257
|
export interface A2UICommandMenuContent {
|
|
251
258
|
image?: unknown;
|
|
252
259
|
title?: string;
|
|
@@ -255,6 +262,22 @@ export interface A2UICommandMenuContent {
|
|
|
255
262
|
fallback?: string;
|
|
256
263
|
}
|
|
257
264
|
|
|
265
|
+
export interface SocialEntityContent {
|
|
266
|
+
username?: string;
|
|
267
|
+
platform?: string;
|
|
268
|
+
title?: string;
|
|
269
|
+
subtitle?: string;
|
|
270
|
+
imageUrl?: string;
|
|
271
|
+
entityId?: string | number;
|
|
272
|
+
entityUrl?: string;
|
|
273
|
+
entityType?: string;
|
|
274
|
+
fullName?: string;
|
|
275
|
+
isVerified?: boolean;
|
|
276
|
+
resultText?: string;
|
|
277
|
+
botJid?: string;
|
|
278
|
+
responseId?: string;
|
|
279
|
+
}
|
|
280
|
+
|
|
258
281
|
export interface AIRichCommandMenuContent {
|
|
259
282
|
image: string;
|
|
260
283
|
title?: string;
|
|
@@ -301,6 +324,12 @@ export interface WASocket {
|
|
|
301
324
|
relayMessage(jid: string, message: Record<string, unknown>, options?: RelayMessageOptions): Promise<unknown>;
|
|
302
325
|
/** Send an experimental Meta AI-style rich menu with image, card buttons, and an optional URL footer. */
|
|
303
326
|
richMenu(jid: string, content?: RichMenuContent, options?: Record<string, unknown>): Promise<unknown>;
|
|
327
|
+
/** Send a provider-neutral AIRich social/entity result card. */
|
|
328
|
+
sendSocialEntity(jid: string, content?: SocialEntityContent, options?: Record<string, unknown>): Promise<unknown>;
|
|
329
|
+
/** Send the primary Instagram profile result using the universal social/entity format. */
|
|
330
|
+
sendInstagramProfile(jid: string, content: SocialEntityContent, options?: Record<string, unknown>): Promise<unknown>;
|
|
331
|
+
/** Send arbitrary A2UI/interactive payloads with immediate relay/edit rendering. */
|
|
332
|
+
sendA2UIMessage(jid: string, content?: A2UIMessageContent, options?: Record<string, unknown>): Promise<unknown>;
|
|
304
333
|
/** Send the large A2UI card/menu with an image header, command table, URL buttons, and native-flow selector. */
|
|
305
334
|
sendA2UICommandMenu(jid: string, content?: A2UICommandMenuContent, options?: Record<string, unknown>): Promise<unknown>;
|
|
306
335
|
/** Send the manually serialized AIRich command card with image, Markdown, widget CTAs, and footer actions. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plogme",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"description": "Production-ready Baileys fork ⚉ with AI groups, Meta AI prompting, safe compositing fallbacks, rich responses, interactive messages, albums, newsletters, and communities — without antiban wrappers.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"type": "module",
|