@prass/botpress-native
Version:
A simple and powerful SDK for integrating Botpress Chat API with React Native,
12 lines (11 loc) • 612 B
TypeScript
import { CreateMessageParams } from "../../types/botpress";
import { Botpress } from "../Botpress";
import { MessageResponse } from "../../types/botpress.response";
/**
* Internal handler for creating a new message in a conversation.
* @param this - Botpress instance context
* @param params - Parameters containing conversationId and payload
* @returns Promise resolving to the created message details
* @throws Error if prerequisites are missing or API call fails
*/
export declare function handleCreateMessage(this: Botpress, { conversationId, payload }: CreateMessageParams): Promise<MessageResponse>;