Version:
SDK for interfacing with WhatsApp Business Platform in Typescript or Node.js using the Cloud API, hosted by Meta.
21 lines (20 loc) • 754 B
TypeScript
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
import * as w from '../types/webhooks';
import { RequesterClass } from '../types/requester';
import { WAConfigType } from '../types/config';
import HttpsServer from '../httpsServer';
import BaseAPI from './base';
export default class WebhooksAPI extends BaseAPI implements w.WebhooksClass {
userAgent: string;
server?: HttpsServer;
constructor(config: WAConfigType, HttpsClient: RequesterClass, userAgent: string);
start(cb: w.WebhookCallback): boolean;
isStarted(): boolean;
stop(cb: (err?: Error) => any): boolean;
}