@prass/botpress-native
Version:
A simple and powerful SDK for integrating Botpress Chat API with React Native,
12 lines (11 loc) • 637 B
TypeScript
import { AddParticipantParams } from "../../types/botpress";
import { Botpress } from "../Botpress";
import { AddParticipantResponse } from "../../types/botpress.response";
/**
* Internal handler for adding a participant to a conversation.
* @param this - Botpress instance context
* @param params - Parameters containing conversationId and userId
* @returns Promise resolving to the added participant details
* @throws Error if prerequisites are missing or API call fails
*/
export declare function handleAddParticipant(this: Botpress, { conversationId: cid, userId: uid }: AddParticipantParams): Promise<AddParticipantResponse>;