Skip to content

Commit

Permalink
polimento 2
Browse files Browse the repository at this point in the history
  • Loading branch information
frkr committed Nov 5, 2023
1 parent f86a9ff commit e18e712
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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.17",
"version": "18.0.18",
"description": "WhatsApp Business API Client unofficial",
"homepage": "https://ideias.casa/",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export async function sendOptions(auth: WAAuth, waid: string, body: string, ...o
return {
type: 'reply',
reply: {
id: `${index}`,
id: `${new Date().getTime() + index}`,
title: item as string,
} as RowsEntity
} as ButtonEntity;
Expand All @@ -191,7 +191,7 @@ export async function sendMenu(auth: WAAuth, waid: string, menu: MenuRequest): P
title: 'Menu',
rows: (menu.itens as string[]).map((item, index) => {
return {
id: `${index}`,
id: `${new Date().getTime() + index}`,
title: item as string,
} as RowsEntity;
}),
Expand Down

0 comments on commit e18e712

Please sign in to comment.