diff --git a/package.json b/package.json index 97c4e2a..03dfa81 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/index.ts b/src/index.ts index 4acca4e..ebcf210 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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; @@ -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; }),