@open-wa/wa-automate 4.35.5 → 4.35.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api/Client.d.ts +3 -3
- package/dist/api/Client.js +1 -1
- package/dist/api/model/button.d.ts +5 -0
- package/package.json +1 -1
package/dist/api/Client.d.ts
CHANGED
@@ -18,7 +18,7 @@ import { Listener } from 'eventemitter2';
|
|
18
18
|
import PriorityQueue from 'p-queue/dist/priority-queue';
|
19
19
|
import { NextFunction, Request, Response } from 'express';
|
20
20
|
import { Call } from './model/call';
|
21
|
-
import { Button, Section } from './model/button';
|
21
|
+
import { Button, LocationButtonBody, Section } from './model/button';
|
22
22
|
import { JsonObject } from 'type-fest';
|
23
23
|
import { ReactionEvent } from './model/reactions';
|
24
24
|
export declare enum namespace {
|
@@ -488,12 +488,12 @@ export declare class Client {
|
|
488
488
|
* Send generic quick reply buttons. This is an insiders feature for MD accounts.
|
489
489
|
*
|
490
490
|
* @param {ChatId} to chat id
|
491
|
-
* @param {string} body The body of the buttons message
|
491
|
+
* @param {string | LocationButtonBody} body The body of the buttons message
|
492
492
|
* @param {Button[]} buttons Array of buttons - limit is 3!
|
493
493
|
* @param {string} title The title/header of the buttons message
|
494
494
|
* @param {string} footer The footer of the buttons message
|
495
495
|
*/
|
496
|
-
sendButtons(to: ChatId, body: string, buttons: Button[], title?: string, footer?: string): Promise<boolean | MessageId>;
|
496
|
+
sendButtons(to: ChatId, body: string | LocationButtonBody, buttons: Button[], title?: string, footer?: string): Promise<boolean | MessageId>;
|
497
497
|
/**
|
498
498
|
* Send a banner image
|
499
499
|
*
|
package/dist/api/Client.js
CHANGED
@@ -1275,7 +1275,7 @@ class Client {
|
|
1275
1275
|
* Send generic quick reply buttons. This is an insiders feature for MD accounts.
|
1276
1276
|
*
|
1277
1277
|
* @param {ChatId} to chat id
|
1278
|
-
* @param {string} body The body of the buttons message
|
1278
|
+
* @param {string | LocationButtonBody} body The body of the buttons message
|
1279
1279
|
* @param {Button[]} buttons Array of buttons - limit is 3!
|
1280
1280
|
* @param {string} title The title/header of the buttons message
|
1281
1281
|
* @param {string} footer The footer of the buttons message
|
package/package.json
CHANGED