Skip to content

Commit

Permalink
menu teste 14
Browse files Browse the repository at this point in the history
  • Loading branch information
frkr committed Oct 18, 2023
1 parent c456bfa commit 19b8fc3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "business-whatsapp",
"author": "frkr",
"license": "MIT",
"version": "18.0.12",
"version": "18.0.14",
"description": "WhatsApp Business API Client unofficial",
"homepage": "https://ideias.casa/",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions src/WhatsApp.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ interface SectionsEntity {
}

interface RowsEntity {
id: string;
id?: string;
title: string;
description: string;
description?: string;
}

interface VariableEntity {
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ export async function sendMenu(auth: WAAuth, waid: string, menu: MenuRequest): P
title: 'Menu',
rows: menu.itens.map((item, index) => {
return {
id: `${index}`,
title: `${index}`,
description: item,
id: null,
title: item,
description: null,
} as RowsEntity;
}),
}]
Expand Down

0 comments on commit 19b8fc3

Please sign in to comment.