UNPKG

@prass/botpress-native

Version:

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

14 lines (13 loc) 761 B
import { ListMessagesParams } from "../../types/botpress"; import { Botpress } from "../Botpress"; import { ListMessagesResponse } from "../../types/botpress.response"; /** * Retrieves a list of messages for a specific conversation from the Botpress API. * * @param this - The Botpress instance context * @param params - Parameters for listing messages * @param params.conversationId - The unique identifier of the conversation * @param params.nextToken - Optional pagination token for fetching next set of messages * @returns Promise resolving to the messages response containing message array and metadata */ export declare function handleListMessages(this: Botpress, { conversationId, nextToken }: ListMessagesParams): Promise<ListMessagesResponse>;