forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBc35a83aBurak Boduroğlu4 months ago440 commits

getChatbotThreadMessages.ts5 lines, 402 bytesHistoryRawDownload
1import { client, normalizePage, pageQuery, type Page, type PageParams } from "../client";
2import type { ChatbotMessage } from "./types";
3export async function getChatbotThreadMessages(threadId: string, params?: PageParams): Promise<Page<ChatbotMessage>> {
4 return normalizePage<ChatbotMessage>(await client<unknown>(`/chatbot/threads/${encodeURIComponent(threadId)}/messages${pageQuery(params)}`));
5}