@smartuy/builderbot-provider-waha
Version:
WAHA (WhatsApp HTTP API) provider for BuilderBot desarrollado por SmartUY
24 lines (23 loc) • 851 B
TypeScript
import { ProviderClass } from '@builderbot/bot';
import express from 'express';
import { EventEmitter } from 'events';
export declare class WahaProvider extends ProviderClass {
private config;
vendor: EventEmitter;
globalVendorArgs: any;
vendorInitialized: boolean;
constructor(config: any);
initVendor(): Promise<boolean>;
private startSession;
initWebhook(app: express.Application): void;
busEvents(): {
event: string;
func: Function;
}[];
private handleMessage;
sendMessage(to: string, message: string, extraOptions?: any): Promise<any>;
sendLocation(to: string, latitude: number, longitude: number, title?: string, replyTo?: string | null): Promise<any>;
saveFile(ctx: any, options: any): Promise<string>;
beforeHttpServerInit(): void;
afterHttpServerInit(): void;
}