hezarfen_frontend
Clone
https://git.tahinli.com/Hezarfen/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits
| 1 | import { client } from "../client"; |
| 2 | import type { AcceptedChatbotMessage } from "./types"; |
| 3 | |
| 4 | export function postChatbotMessage(threadId: string, content: string): Promise<AcceptedChatbotMessage> { |
| 5 | return client<AcceptedChatbotMessage>(`/chatbot/threads/${encodeURIComponent(threadId)}/messages`, { |
| 6 | method: "POST", |
| 7 | body: { content }, |
| 8 | }); |
| 9 | } |