hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits
| 1 | import { client, normalizePage, pageQuery, type Page, type PageParams } from "../client"; |
| 2 | import type { ChatbotMessage } from "./types"; |
| 3 | export 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 | } |