UNPKG

@prass/botpress-native

Version:

A simple and powerful SDK for integrating Botpress Chat API with React Native,

12 lines (11 loc) 619 B
import { Botpress } from "../Botpress"; import { CreateEventParams } from "../../types/botpress"; import { EventResponse } from "../../types/botpress.response"; /** * Internal handler for creating a new event in a conversation. * @param this - Botpress instance context * @param params - Parameters containing conversationId and payload * @returns Promise resolving to the created event’s details * @throws Error if user key or conversation ID is missing, or if API call fails */ export declare function handleCreateEvent(this: Botpress, { conversationId, payload }: CreateEventParams): Promise<EventResponse>;