UNPKG

@solufy/evolution-sdk

Version:

Unofficial SDK for the Evolution Whatsapp API v2

31 lines (28 loc) 925 B
import { ApiService } from '../../api/service.js'; import { CheckOptions, CheckResponse } from './schemas/check.js'; import { FindAllChatsResponse } from './schemas/find-all.js'; import { PresenceOptions } from './schemas/presence.js'; import '../../schemas/client.js'; import 'zod'; import '../../types/api.js'; import 'libphonenumber-js'; import '../../types/tags.js'; declare class ChatsModule { private readonly api; constructor(api: ApiService); /** * Checks if a number has WhatsApp * @param numbers - Number(s) (with country code) to check */ check(...numbers: CheckOptions | CheckOptions[]): Promise<CheckResponse>; /** * Gets all chats */ findAll(): Promise<FindAllChatsResponse>; /** * Sends a presence to a certain chat * @param options - Presence options */ sendPresence(options: PresenceOptions): Promise<void>; } export { ChatsModule };