new(whatsapp.gblib): FB Analytics.
This commit is contained in:
parent
760cb807cc
commit
fe1f5d5150
1 changed files with 2 additions and 2 deletions
|
@ -1579,7 +1579,7 @@ private async sendButtonList(to: string, buttons: string[]) {
|
||||||
const templateId = latestTemplate.id;
|
const templateId = latestTemplate.id;
|
||||||
|
|
||||||
// Step 2: Fetch template analytics
|
// Step 2: Fetch template analytics
|
||||||
const startTime = Math.floor(Date.now() / 1000) - 86400; // Last 24h
|
const startTime = Math.floor(Date.now() / 1000) - 604800; // Last 7 days
|
||||||
const endTime = Math.floor(Date.now() / 1000);
|
const endTime = Math.floor(Date.now() / 1000);
|
||||||
|
|
||||||
const analyticsResponse = await fetch(
|
const analyticsResponse = await fetch(
|
||||||
|
|
Loading…
Add table
Reference in a new issue